aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2021-03-18 11:23:48 +0100
committerMagnus Hagander <magnus@hagander.net>2021-03-18 11:23:48 +0100
commita5eb70cfca5bc252d7913eb6bb0ff304c4b7d7ae (patch)
tree3a69359d82d06099a94b8e16a178c05f70507fb3
parent2111b409879eee6900aaa3107987f932524064ca (diff)
downloadpostgresql-a5eb70cfca5bc252d7913eb6bb0ff304c4b7d7ae.tar.gz
postgresql-a5eb70cfca5bc252d7913eb6bb0ff304c4b7d7ae.zip
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
-rw-r--r--src/backend/utils/adt/genfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/adt/genfile.c b/src/backend/utils/adt/genfile.c
index 5eee853707c..d0847a4435d 100644
--- a/src/backend/utils/adt/genfile.c
+++ b/src/backend/utils/adt/genfile.c
@@ -250,7 +250,7 @@ pg_read_file(PG_FUNCTION_ARGS)
(errmsg("must be superuser to read files with adminpack 1.0"),
/* translator: %s is a SQL function name */
errhint("Consider using %s, which is part of core, instead.",
- "pg_file_read()"))));
+ "pg_read_file()"))));
/* handle optional arguments */
if (PG_NARGS() >= 3)