Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit15a3fe6

Browse files
committed
Properly mark pg_freespace() function as strict. Also update
uninstall script to match reality.
1 parent5e29862 commit15a3fe6

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

‎contrib/pg_freespacemap/pg_freespacemap.sql.in

Lines changed: 2 additions & 2 deletions
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/0212: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
Lines changed: 3 additions & 6 deletions
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-
DROPVIEW pg_freespacemap_pages;
7-
DROPVIEW pg_freespacemap_relations;
8-
9-
DROPFUNCTION pg_freespacemap_pages();
10-
DROPFUNCTION pg_freespacemap_relations();
6+
DROPFUNCTION pg_freespace(regclass,bigint);
7+
DROPFUNCTION pg_freespace(regclass);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp