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

Commit1758b3e

Browse files
committed
/contrib/adminpack: More clearly identify renaming of existing backend
functions. I also found that pg_file_length was incorrectly documentedin the README as pg_file_size.
1 parentea0390b commit1758b3e

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

‎contrib/adminpack/README.adminpack

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@ Objects implemented (superuser only)
3737
====================================
3838

3939
int8 pg_catalog.pg_file_write(fname text, data text, append bool)
40-
int8 pg_catalog.pg_file_read(fname text, data text, append bool)
41-
bool pg_catalog.pg_file_rename(oldname text, newname text)
4240
bool pg_catalog.pg_file_rename(oldname text, newname text, archivname text)
41+
bool pg_catalog.pg_file_rename(oldname text, newname text)
4342
bool pg_catalog.pg_file_unlink(fname text)
44-
bigint pg_catalog.pg_file_size(text)
45-
int4 pg_catalog.pg_logfile_rotate()
4643
setof record pg_catalog.pg_logdir_ls()
4744

45+
/* Renaming of existing backend functions for pgAdmin compatibility */
46+
int8 pg_catalog.pg_file_read(fname text, data text, append bool)
47+
bigint pg_catalog.pg_file_length(text)
48+
int4 pg_catalog.pg_logfile_rotate()

‎contrib/adminpack/adminpack.sql.in

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,20 @@ CREATE FUNCTION pg_catalog.pg_file_rename(text, text, text) RETURNS bool
1212
AS 'MODULE_PATHNAME', 'pg_file_rename'
1313
LANGUAGE C VOLATILE;
1414

15-
CREATE FUNCTION pg_catalog.pg_file_unlink(text) RETURNS bool
16-
AS 'MODULE_PATHNAME', 'pg_file_unlink'
17-
LANGUAGE C VOLATILE STRICT;
18-
1915
CREATE FUNCTION pg_catalog.pg_file_rename(text, text) RETURNS bool
2016
AS 'SELECT pg_file_rename($1, $2, NULL); '
2117
LANGUAGE SQL VOLATILE STRICT;
2218

19+
CREATE FUNCTION pg_catalog.pg_file_unlink(text) RETURNS bool
20+
AS 'MODULE_PATHNAME', 'pg_file_unlink'
21+
LANGUAGE C VOLATILE STRICT;
22+
2323
CREATE FUNCTION pg_catalog.pg_logdir_ls() RETURNS setof record
2424
AS 'MODULE_PATHNAME', 'pg_logdir_ls'
2525
LANGUAGE C VOLATILE STRICT;
2626

2727

28-
/* compatibility redefines */
29-
30-
CREATE FUNCTION pg_catalog.pg_logfile_rotate() RETURNS int4
31-
AS 'pg_rotate_logfile'
32-
LANGUAGE INTERNAL VOLATILE STRICT;
28+
/* Renaming of existing backend functions for pgAdmin compatibility */
3329

3430
CREATE FUNCTION pg_catalog.pg_file_read(text, bigint, bigint) RETURNS text
3531
AS 'pg_read_file'
@@ -39,3 +35,7 @@ CREATE FUNCTION pg_catalog.pg_file_length(text) RETURNS bigint
3935
AS 'SELECT size FROM pg_stat_file($1)'
4036
LANGUAGE SQL VOLATILE STRICT;
4137

38+
CREATE FUNCTION pg_catalog.pg_logfile_rotate() RETURNS int4
39+
AS 'pg_rotate_logfile'
40+
LANGUAGE INTERNAL VOLATILE STRICT;
41+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp