config root man

Current Path : /usr/local/share/postgresql/contrib/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/share/postgresql/contrib/pg_freespacemap.sql

/* $PostgreSQL: pgsql/contrib/pg_freespacemap/pg_freespacemap.sql.in,v 1.8 2007/11/13 04:24:28 momjian Exp $ */

-- Adjust this setting to control where the objects get created.
SET search_path = public;


-- Register the functions.
CREATE OR REPLACE FUNCTION pg_freespacemap_pages()
RETURNS SETOF RECORD
AS '$libdir/pg_freespacemap', 'pg_freespacemap_pages'
LANGUAGE C;

CREATE OR REPLACE FUNCTION pg_freespacemap_relations()
RETURNS SETOF RECORD
AS '$libdir/pg_freespacemap', 'pg_freespacemap_relations'
LANGUAGE C;


-- Create views for convenient access.
CREATE VIEW pg_freespacemap_pages AS
	SELECT P.* FROM pg_freespacemap_pages() AS P
	(reltablespace oid,
	 reldatabase oid,
	 relfilenode oid,
	 relblocknumber bigint,
	 bytes integer);
 
CREATE VIEW pg_freespacemap_relations AS
	SELECT P.* FROM pg_freespacemap_relations() AS P
	(reltablespace oid,
	 reldatabase oid,
	 relfilenode oid,
	 avgrequest integer,
	 interestingpages integer,
	 storedpages integer,
	 nextpage integer);

 
-- Don't want these to be available to public.
REVOKE ALL ON FUNCTION pg_freespacemap_pages() FROM PUBLIC;
REVOKE ALL ON pg_freespacemap_pages FROM PUBLIC;

REVOKE ALL ON FUNCTION pg_freespacemap_relations() FROM PUBLIC;
REVOKE ALL ON pg_freespacemap_relations FROM PUBLIC;

Man Man