Properly mark pg_freespace() function as strict. Also update
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 10 Jun 2009 22:12:28 +0000 (22:12 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 10 Jun 2009 22:12:28 +0000 (22:12 +0000)
uninstall script to match reality.

contrib/pg_freespacemap/pg_freespacemap.sql.in
contrib/pg_freespacemap/uninstall_pg_freespacemap.sql

index 5c67d8c90f547f682c3d78a77266d81378d3b8ef..23e4245735455d3c0454bce9dadc733fc24c01a5 100644 (file)
@@ -8,7 +8,7 @@ SET search_path = public;
 CREATE OR REPLACE FUNCTION pg_freespace(regclass, bigint)
 RETURNS int2
 AS 'MODULE_PATHNAME', 'pg_freespace'
-LANGUAGE C;
+LANGUAGE C STRICT;
 
 -- pg_freespace shows the recorded space avail at each block in a relation
 CREATE OR REPLACE FUNCTION
index 35dc02695c54aa066af8b25c8ee38d8965a056c6..f5ef77461c83b02c6ef4ad96774fce34c0b4a06b 100644 (file)
@@ -3,8 +3,5 @@
 -- Adjust this setting to control where the objects get dropped.
 SET search_path = public;
 
-DROP VIEW pg_freespacemap_pages;
-DROP VIEW pg_freespacemap_relations;
-
-DROP FUNCTION pg_freespacemap_pages();
-DROP FUNCTION pg_freespacemap_relations();
+DROP FUNCTION pg_freespace(regclass, bigint);
+DROP FUNCTION pg_freespace(regclass);