diff options
author | Magnus Hagander <magnus@hagander.net> | 2021-03-18 11:17:42 +0100 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2021-03-18 11:22:37 +0100 |
commit | 0c3079e3ef6956feefc9cc4f62ad1f9acc7c84e9 (patch) | |
tree | a9abb664ed90b5ee13b0278aedb5fc4c9d6697b0 /src | |
parent | b77e5d73bcfc0810e7a4eab29cfbc2859adb8db9 (diff) | |
download | postgresql-0c3079e3ef6956feefc9cc4f62ad1f9acc7c84e9.tar.gz postgresql-0c3079e3ef6956feefc9cc4f62ad1f9acc7c84e9.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')
-rw-r--r-- | src/backend/utils/adt/genfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/adt/genfile.c b/src/backend/utils/adt/genfile.c index d34182a7b04..76252220751 100644 --- a/src/backend/utils/adt/genfile.c +++ b/src/backend/utils/adt/genfile.c @@ -251,7 +251,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) |