diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2017-09-26 15:25:57 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2017-09-26 15:25:57 -0400 |
commit | 6c77b47b2e8edbe6446a42adc6099d1543e69214 (patch) | |
tree | 7c3862b9daaf5aee9cce748f2bdbbcfd9e69cb59 /src/backend/commands/analyze.c | |
parent | e0f5710c5e8b9502ac8bcd821d3418053ed38f7a (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/analyze.c b/src/backend/commands/analyze.c index 0b35561e960..3616d5063cd 100644 --- a/src/backend/commands/analyze.c +++ b/src/backend/commands/analyze.c @@ -395,7 +395,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); |