aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/analyze.c
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
commit9a50a93c7b1427f6182ed1f21ed76da5b1d6a57c (patch)
tree13f131c5d51797dc068db986d318a181e4bc59b9 /src/backend/commands/analyze.c
parent5ea96efaa0100e96b6b927eb1e67869143e1db4e (diff)
downloadpostgresql-9a50a93c7b1427f6182ed1f21ed76da5b1d6a57c.tar.gz
postgresql-9a50a93c7b1427f6182ed1f21ed76da5b1d6a57c.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
Diffstat (limited to 'src/backend/commands/analyze.c')
-rw-r--r--src/backend/commands/analyze.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/analyze.c b/src/backend/commands/analyze.c
index 1248b2ee5c0..283845cf2a6 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);