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

Skip to content

Commit 6c77b47

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 e0f5710 commit 6c77b47

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

src/test/regress/expected/vacuum.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ SQL function "wrap_do_analyze" statement 1
8181
VACUUM FULL vactst;
8282
-- check behavior with duplicate column mentions
8383
VACUUM ANALYZE vaccluster(i,i);
84-
ERROR: column "i" of relation "vaccluster" is specified twice
84+
ERROR: column "i" of relation "vaccluster" appears more than once
8585
ANALYZE vaccluster(i,i);
86-
ERROR: column "i" of relation "vaccluster" is specified twice
86+
ERROR: column "i" of relation "vaccluster" appears more than once
8787
DROP TABLE vaccluster;
8888
DROP TABLE vactst;

0 commit comments

Comments
 (0)