Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 15a3fe6

Browse files
committed
Properly mark pg_freespace() function as strict. Also update
uninstall script to match reality.
1 parent 5e29862 commit 15a3fe6

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

contrib/pg_freespacemap/pg_freespacemap.sql.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/contrib/pg_freespacemap/pg_freespacemap.sql.in,v 1.11 2008/10/02 12:20:50 heikki Exp $ */
1+
/* $PostgreSQL: pgsql/contrib/pg_freespacemap/pg_freespacemap.sql.in,v 1.12 2009/06/10 22:12:28 tgl Exp $ */
22

33
-- Adjust this setting to control where the objects get created.
44
SET search_path = public;
@@ -8,7 +8,7 @@ SET search_path = public;
88
CREATE OR REPLACE FUNCTION pg_freespace(regclass, bigint)
99
RETURNS int2
1010
AS 'MODULE_PATHNAME', 'pg_freespace'
11-
LANGUAGE C;
11+
LANGUAGE C STRICT;
1212

1313
-- pg_freespace shows the recorded space avail at each block in a relation
1414
CREATE OR REPLACE FUNCTION
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
/* $PostgreSQL: pgsql/contrib/pg_freespacemap/uninstall_pg_freespacemap.sql,v 1.4 2008/09/30 11:17:07 heikki Exp $ */
1+
/* $PostgreSQL: pgsql/contrib/pg_freespacemap/uninstall_pg_freespacemap.sql,v 1.5 2009/06/10 22:12:28 tgl Exp $ */
22

33
-- Adjust this setting to control where the objects get dropped.
44
SET search_path = public;
55

6-
DROP VIEW pg_freespacemap_pages;
7-
DROP VIEW pg_freespacemap_relations;
8-
9-
DROP FUNCTION pg_freespacemap_pages();
10-
DROP FUNCTION pg_freespacemap_relations();
6+
DROP FUNCTION pg_freespace(regclass, bigint);
7+
DROP FUNCTION pg_freespace(regclass);

0 commit comments

Comments
 (0)