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

Commitda94e87

Browse files
committed
Unify repetitive error messages
1 parentea792bf commitda94e87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/backend/commands/explain.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ ExplainQuery(ParseState *pstate, ExplainStmt *stmt,
287287
if (es->wal&& !es->analyze)
288288
ereport(ERROR,
289289
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
290-
errmsg("EXPLAIN optionWAL requires ANALYZE")));
290+
errmsg("EXPLAIN option%s requires ANALYZE","WAL")));
291291

292292
/* if the timing was not set explicitly, set default value */
293293
es->timing= (timing_set) ?es->timing :es->analyze;
@@ -296,13 +296,13 @@ ExplainQuery(ParseState *pstate, ExplainStmt *stmt,
296296
if (es->timing&& !es->analyze)
297297
ereport(ERROR,
298298
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
299-
errmsg("EXPLAIN optionTIMING requires ANALYZE")));
299+
errmsg("EXPLAIN option%s requires ANALYZE","TIMING")));
300300

301301
/* check that serialize is used with EXPLAIN ANALYZE */
302302
if (es->serialize!=EXPLAIN_SERIALIZE_NONE&& !es->analyze)
303303
ereport(ERROR,
304304
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
305-
errmsg("EXPLAIN optionSERIALIZE requires ANALYZE")));
305+
errmsg("EXPLAIN option%s requires ANALYZE","SERIALIZE")));
306306

307307
/* check that GENERIC_PLAN is not used with EXPLAIN ANALYZE */
308308
if (es->generic&&es->analyze)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp