Skip to content

Commit a5eb70c

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

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
@@ -250,7 +250,7 @@ pg_read_file(PG_FUNCTION_ARGS)
250250
(errmsg("must be superuser to read files with adminpack 1.0"),
251251
/* translator: %s is a SQL function name */
252252
errhint("Consider using %s, which is part of core, instead.",
253-
"pg_file_read()"))));
253+
"pg_read_file()"))));
254254

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy