1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-08 11:42:09 +03:00

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
This commit is contained in:
Tom Lane
2017-09-26 15:25:56 -04:00
parent 5ea96efaa0
commit 9a50a93c7b
2 changed files with 3 additions and 3 deletions

View File

@ -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);