summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2009-06-10 22:12:28 +0000
committerTom Lane2009-06-10 22:12:28 +0000
commitacac94a3604df0656df91389a0c3b93254ba2db0 (patch)
treea64a201a448a380e6c0f16cca0811adf0b58a90c
parent8e80c451fe47149b7f47deb14187e9e605962ec3 (diff)
Properly mark pg_freespace() function as strict. Also update
uninstall script to match reality.
-rw-r--r--contrib/pg_freespacemap/pg_freespacemap.sql.in2
-rw-r--r--contrib/pg_freespacemap/uninstall_pg_freespacemap.sql7
2 files changed, 3 insertions, 6 deletions
diff --git a/contrib/pg_freespacemap/pg_freespacemap.sql.in b/contrib/pg_freespacemap/pg_freespacemap.sql.in
index 5c67d8c90f..23e4245735 100644
--- a/contrib/pg_freespacemap/pg_freespacemap.sql.in
+++ b/contrib/pg_freespacemap/pg_freespacemap.sql.in
@@ -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
diff --git a/contrib/pg_freespacemap/uninstall_pg_freespacemap.sql b/contrib/pg_freespacemap/uninstall_pg_freespacemap.sql
index 35dc02695c..f5ef77461c 100644
--- a/contrib/pg_freespacemap/uninstall_pg_freespacemap.sql
+++ b/contrib/pg_freespacemap/uninstall_pg_freespacemap.sql
@@ -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);