From 68f6f2b7395fe3e403034bcd97a1fcfbcc68ae10 Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Wed, 19 Dec 2018 14:51:13 -0300 Subject: Remove function names from error messages They are not necessary, and having them there gives useless work for translators. --- src/backend/access/transam/xlogfuncs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/backend/access/transam/xlogfuncs.c') diff --git a/src/backend/access/transam/xlogfuncs.c b/src/backend/access/transam/xlogfuncs.c index f139eeff9ff..d2615356ec5 100644 --- a/src/backend/access/transam/xlogfuncs.c +++ b/src/backend/access/transam/xlogfuncs.c @@ -465,7 +465,8 @@ pg_walfile_name_offset(PG_FUNCTION_ARGS) ereport(ERROR, (errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE), errmsg("recovery is in progress"), - errhint("pg_walfile_name_offset() cannot be executed during recovery."))); + errhint("%s cannot be executed during recovery.", + "pg_walfile_name_offset()"))); /* * Construct a tuple descriptor for the result row. This must match this @@ -521,7 +522,8 @@ pg_walfile_name(PG_FUNCTION_ARGS) ereport(ERROR, (errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE), errmsg("recovery is in progress"), - errhint("pg_walfile_name() cannot be executed during recovery."))); + errhint("%s cannot be executed during recovery.", + "pg_walfile_name()"))); XLByteToPrevSeg(locationpoint, xlogsegno, wal_segment_size); XLogFileName(xlogfilename, ThisTimeLineID, xlogsegno, wal_segment_size); -- cgit v1.2.3