aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2021-03-18 11:24:42 +0100
committerMagnus Hagander <magnus@hagander.net>2021-03-18 11:24:42 +0100
commit5d825d7bee4d05c4ed086e23306e7a74b8f817a8 (patch)
tree80a9662c9bca292ef4b96c9343050bda20ca0540 /src/backend
parent217815c66987704ef5139772a8fd05fd7c361e1a (diff)
downloadpostgresql-5d825d7bee4d05c4ed086e23306e7a74b8f817a8.tar.gz
postgresql-5d825d7bee4d05c4ed086e23306e7a74b8f817a8.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
Diffstat (limited to 'src/backend')
-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 eaf4bcdcdcc..5a8c815b463 100644
--- a/src/backend/utils/adt/genfile.c
+++ b/src/backend/utils/adt/genfile.c
@@ -246,7 +246,7 @@ pg_read_file(PG_FUNCTION_ARGS)
ereport(ERROR,
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
(errmsg("must be superuser to read files with adminpack 1.0"),
- errhint("Consider using pg_file_read(), which is part of core, instead."))));
+ errhint("Consider using pg_read_file(), which is part of core, instead."))));
/* handle optional arguments */
if (PG_NARGS() >= 3)