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

Commit9a50a93

Browse files
committed
Improve wording of error message added in commit7148050.
Per suggestions from Peter Eisentraut and David Johnston.Back-patch, like the previous commit.Discussion:https://postgr.es/m/E1dv9jI-0006oT-Fn@gemulon.postgresql.org
1 parent5ea96ef commit9a50a93

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎src/backend/commands/analyze.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ do_analyze_rel(Relation onerel, int options, VacuumParams *params,
396396
if (bms_is_member(i,unique_cols))
397397
ereport(ERROR,
398398
(errcode(ERRCODE_DUPLICATE_COLUMN),
399-
errmsg("column \"%s\" of relation \"%s\"is specified twice",
399+
errmsg("column \"%s\" of relation \"%s\"appears more than once",
400400
col,RelationGetRelationName(onerel))));
401401
unique_cols=bms_add_member(unique_cols,i);
402402

‎src/test/regress/expected/vacuum.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ VACUUM (FULL) vacparted;
9292
VACUUM (FREEZE) vacparted;
9393
-- check behavior with duplicate column mentions
9494
VACUUM ANALYZE vacparted(a,b,a);
95-
ERROR: column "a" of relation "vacparted"is specified twice
95+
ERROR: column "a" of relation "vacparted"appears more than once
9696
ANALYZE vacparted(a,b,b);
97-
ERROR: column "b" of relation "vacparted"is specified twice
97+
ERROR: column "b" of relation "vacparted"appears more than once
9898
DROP TABLE vacparted;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp