mirror of
https://github.com/postgres/postgres.git
synced 2025-05-20 00:03:14 -04:00
Remove function names from error messages
They are not necessary, and having them there gives useless work for translators.
This commit is contained in:
parent
c6e394c1a2
commit
68f6f2b739
@ -465,7 +465,8 @@ pg_walfile_name_offset(PG_FUNCTION_ARGS)
|
|||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
|
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
|
||||||
errmsg("recovery is in progress"),
|
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
|
* Construct a tuple descriptor for the result row. This must match this
|
||||||
@ -521,7 +522,8 @@ pg_walfile_name(PG_FUNCTION_ARGS)
|
|||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
|
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
|
||||||
errmsg("recovery is in progress"),
|
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);
|
XLByteToPrevSeg(locationpoint, xlogsegno, wal_segment_size);
|
||||||
XLogFileName(xlogfilename, ThisTimeLineID, xlogsegno, wal_segment_size);
|
XLogFileName(xlogfilename, ThisTimeLineID, xlogsegno, wal_segment_size);
|
||||||
|
@ -2348,8 +2348,8 @@ pg_extension_config_dump(PG_FUNCTION_ARGS)
|
|||||||
if (!creating_extension)
|
if (!creating_extension)
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
|
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
|
||||||
errmsg("pg_extension_config_dump() can only be called "
|
errmsg("%s can only be called from an SQL script executed by CREATE EXTENSION",
|
||||||
"from an SQL script executed by CREATE EXTENSION")));
|
"pg_extension_config_dump()")));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check that the table exists and is a member of the extension being
|
* Check that the table exists and is a member of the extension being
|
||||||
|
Loading…
x
Reference in New Issue
Block a user