]> granicus.if.org Git - postgresql/commitdiff
Improve wording of error message added in commit 714805010.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 26 Sep 2017 19:25:56 +0000 (15:25 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 26 Sep 2017 19:25:56 +0000 (15:25 -0400)
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

src/backend/commands/analyze.c
src/test/regress/expected/vacuum.out

index c58f3096e6318dc92642a4fc7d6984b36203a953..79fcb54e3a0579dc1c56c13f86d3c2497a654ca7 100644 (file)
@@ -382,7 +382,7 @@ do_analyze_rel(Relation onerel, int options, VacuumParams *params,
                        if (bms_is_member(i, unique_cols))
                                ereport(ERROR,
                                                (errcode(ERRCODE_DUPLICATE_COLUMN),
-                                                errmsg("column \"%s\" of relation \"%s\" is specified twice",
+                                                errmsg("column \"%s\" of relation \"%s\" appears more than once",
                                                                col, RelationGetRelationName(onerel))));
                        unique_cols = bms_add_member(unique_cols, i);
 
index 23a877e9ccae40de37e0a5209b7ad80f4daf9c50..540f4f3014adb3d7340ba3fd62c601808563bdba 100644 (file)
@@ -82,8 +82,8 @@ VACUUM FULL vactst;
 VACUUM (DISABLE_PAGE_SKIPPING) vaccluster;
 -- check behavior with duplicate column mentions
 VACUUM ANALYZE vaccluster(i,i);
-ERROR:  column "i" of relation "vaccluster" is specified twice
+ERROR:  column "i" of relation "vaccluster" appears more than once
 ANALYZE vaccluster(i,i);
-ERROR:  column "i" of relation "vaccluster" is specified twice
+ERROR:  column "i" of relation "vaccluster" appears more than once
 DROP TABLE vaccluster;
 DROP TABLE vactst;