8000 Improve wording of error message added in commit 714805010. · MSPawanRanjith/postgres@9d0d0fe · GitHub
[go: up one dir, main page]

Skip to content

Commit 9d0d0fe

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 2eb84e5 commit 9d0d0fe

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
@@ -393,7 +393,7 @@ do_analyze_rel(Relation onerel, VacuumStmt *vacstmt,
393393
if (bms_is_member(i, unique_cols))
394394
ereport(ERROR,
395395
(errcode(ERRCODE_DUPLICATE_COLUMN),
396-
errmsg("column \"%s\" of relation \"%s\" is specified twice",
396+
errmsg("column \"%s\" of relation \"%s\" appears more than once",
397397
col, RelationGetRelationName(onerel))));
398398
unique_cols = bms_add_member(unique_cols, i);
399399

src/test/regress/expected/vacuum.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ SQL function "wrap_do_analyze" statement 1
8282
VACUUM FULL vactst;
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)
0