diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2017-09-26 15:25:56 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2017-09-26 15:25:56 -0400 |
commit | f4aac742c8293b1a0535a8133f926d46474300f0 (patch) | |
tree | fe6bf1df2d1fcddd216d4f0a48eb6bb647300c85 /src/backend/commands | |
parent | 12ac252f9014a96c0b7159912659fa4d0f9cbc07 (diff) | |
download | postgresql-f4aac742c8293b1a0535a8133f926d46474300f0.tar.gz postgresql-f4aac742c8293b1a0535a8133f926d46474300f0.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')
-rw-r--r-- | src/backend/commands/analyze.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/analyze.c b/src/backend/commands/analyze.c index c58f3096e63..79fcb54e3a0 100644 --- a/src/backend/commands/analyze.c +++ b/src/backend/commands/analyze.c @@ -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); |