Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9a50a93

Browse files
committed
Improve wording of error message added in commit 7148050.
Per suggestions from Peter Eisentraut and David Johnston. Back-patch, like the previous commit. Discussion: https://postgr.es/m/[email protected]
1 parent 5ea96ef commit 9a50a93

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)