]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Improve wording of error message added in commit 714805010.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 26 Sep 2017 19:25:57 +0000 (15:25 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 26 Sep 2017 19:25:57 +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 f269e23a28590c6de19abda43d2e033a30acc367..84a99294e50280d86efaa78d205f92c94af8d5e9 100644 (file)
@@ -393,7 +393,7 @@ do_analyze_rel(Relation onerel, VacuumStmt *vacstmt,
                        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 6ba8ec93e337d153188be15eda29895d7a0e4165..60f6bc2817d06ee3e31eb846458bcab141632574 100644 (file)
@@ -82,8 +82,8 @@ SQL function "wrap_do_analyze" statement 1
 VACUUM FULL vactst;
 -- 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;