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

Commitda18d82

Browse files
committed
Fix function name in error hint
pg_read_file() is the function that's in core, pg_file_read() is inadminpack. But when using pg_file_read() in adminpack it calls the *C*level function pg_read_file() in core, which probably threw the originalauthor off. But the error hint should be about the SQL function.Reported-By: Sergei KornilovBackpatch-through: 11Discussion:https://postgr.es/m/373021616060475@mail.yandex.ru
1 parented62d37 commitda18d82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/utils/adt/genfile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ pg_read_file(PG_FUNCTION_ARGS)
251251
errmsg("must be superuser to read files with adminpack 1.0"),
252252
/* translator: %s is a SQL function name */
253253
errhint("Consider using %s, which is part of core, instead.",
254-
"pg_file_read()")));
254+
"pg_read_file()")));
255255

256256
/* handle optional arguments */
257257
if (PG_NARGS() >=3)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp