aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2017-09-26 15:25:56 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2017-09-26 15:25:56 -0400
commit9ebc7781444fd15d56ed16e5312a954483e85cd9 (patch)
tree37d5e84882b1314653e926988803acedf429bca0
parentd29f30d8c3b2a9d8c57324355df8a8d9da1d9c12 (diff)
downloadpostgresql-9ebc7781444fd15d56ed16e5312a954483e85cd9.tar.gz
postgresql-9ebc7781444fd15d56ed16e5312a954483e85cd9.zip
Improve wording of error message added in commit 714805010.
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
-rw-r--r--src/backend/commands/analyze.c2
-rw-r--r--src/test/regress/expected/vacuum.out4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/commands/analyze.c b/src/backend/commands/analyze.c
index 28b679d0307..322008ac435 100644
--- a/src/backend/commands/analyze.c
+++ b/src/backend/commands/analyze.c
@@ -396,7 +396,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);
diff --git a/src/test/regress/expected/vacuum.out b/src/test/regress/expected/vacuum.out
index a16f26da7e7..ced53ca9aaf 100644
--- a/src/test/regress/expected/vacuum.out
+++ b/src/test/regress/expected/vacuum.out
@@ -92,7 +92,7 @@ VACUUM (FULL) vacparted;
VACUUM (FREEZE) vacparted;
-- check behavior with duplicate column mentions
VACUUM ANALYZE vacparted(a,b,a);
-ERROR: column "a" of relation "vacparted" is specified twice
+ERROR: column "a" of relation "vacparted" appears more than once
ANALYZE vacparted(a,b,b);
-ERROR: column "b" of relation "vacparted" is specified twice
+ERROR: column "b" of relation "vacparted" appears more than once
DROP TABLE vacparted;