Skip to content

Commit f4aac74

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/E1dv9jI-0006oT-Fn@gemulon.postgresql.org
1 parent 12ac252 commit f4aac74

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
@@ -382,7 +382,7 @@ do_analyze_rel(Relation onerel, int options, VacuumParams *params,
382382
if (bms_is_member(i, unique_cols))
383383
ereport(ERROR,
384384
(errcode(ERRCODE_DUPLICATE_COLUMN),
385-
errmsg("column \"%s\" of relation \"%s\" is specified twice",
385+
errmsg("column \"%s\" of relation \"%s\" appears more than once",
386386
col, RelationGetRelationName(onerel))));
387387
unique_cols = bms_add_member(unique_cols, i);
388388

src/test/regress/expected/vacuum.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ VACUUM FULL vactst;
8282
VACUUM (DISABLE_PAGE_SKIPPING) vaccluster;
8383
-- check behavior with duplicate column mentions
8484
VACUUM ANALYZE vaccluster(i,i);
85-
ERROR: column "i" of relation "vaccluster" is specified twice
85+
ERROR: column "i" of relation "vaccluster" appears more than once
8686
ANALYZE vaccluster(i,i);
87-
ERROR: column "i" of relation "vaccluster" is specified twice
87+
ERROR: column "i" of relation "vaccluster" appears more than once
8888
DROP TABLE vaccluster;
8989
DROP TABLE vactst;

0 commit comments

Comments
 (0)