Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit68f6f2b

Browse files
committed
Remove function names from error messages
They are not necessary, and having them there gives useless work fortranslators.
1 parentc6e394c commit68f6f2b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

‎src/backend/access/transam/xlogfuncs.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,8 @@ pg_walfile_name_offset(PG_FUNCTION_ARGS)
465465
ereport(ERROR,
466466
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
467467
errmsg("recovery is in progress"),
468-
errhint("pg_walfile_name_offset() cannot be executed during recovery.")));
468+
errhint("%s cannot be executed during recovery.",
469+
"pg_walfile_name_offset()")));
469470

470471
/*
471472
* Construct a tuple descriptor for the result row. This must match this
@@ -521,7 +522,8 @@ pg_walfile_name(PG_FUNCTION_ARGS)
521522
ereport(ERROR,
522523
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
523524
errmsg("recovery is in progress"),
524-
errhint("pg_walfile_name() cannot be executed during recovery.")));
525+
errhint("%s cannot be executed during recovery.",
526+
"pg_walfile_name()")));
525527

526528
XLByteToPrevSeg(locationpoint,xlogsegno,wal_segment_size);
527529
XLogFileName(xlogfilename,ThisTimeLineID,xlogsegno,wal_segment_size);

‎src/backend/commands/extension.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2348,8 +2348,8 @@ pg_extension_config_dump(PG_FUNCTION_ARGS)
23482348
if (!creating_extension)
23492349
ereport(ERROR,
23502350
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
2351-
errmsg("pg_extension_config_dump() can only be called"
2352-
"from an SQL script executed by CREATE EXTENSION")));
2351+
errmsg("%s can only be calledfrom an SQL script executed by CREATE EXTENSION",
2352+
"pg_extension_config_dump()")));
23532353

23542354
/*
23552355
* Check that the table exists and is a member of the extension being

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp