Fix function name in error hint

Magnus Hagander <magnus@hagander.net>

Commit: 5d825d7bee4d05c4ed086e23306e7a74b8f817a8
Author: Magnus Hagander <magnus@hagander.net>
Date: 2021-03-18T10:24:42Z
Releases: 11.12
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

Files

PathChange+/−
src/backend/utils/adt/genfile.c modified +1 −1

Discussion