Content-Length: 289276 | pFad | http://github.com/postgrespro/postgres_cluster/commit/9ebc7781444fd15d56ed16e5312a954483e85cd9

CB Improve wording of error message added in commit 714805010. · postgrespro/postgres_cluster@9ebc778 · GitHub
Skip to content

Commit 9ebc778

Browse files
committed
Improve wording of error message added in commit 7148050.
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
1 parent d29f30d commit 9ebc778

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/backend/commands/analyze.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ do_analyze_rel(Relation onerel, int options, VacuumParams *params,
396396
if (bms_is_member(i, unique_cols))
397397
ereport(ERROR,
398398
(errcode(ERRCODE_DUPLICATE_COLUMN),
399-
errmsg("column \"%s\" of relation \"%s\" is specified twice",
399+
errmsg("column \"%s\" of relation \"%s\" appears more than once",
400400
col, RelationGetRelationName(onerel))));
401401
unique_cols = bms_add_member(unique_cols, i);
402402

src/test/regress/expected/vacuum.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ VACUUM (FULL) vacparted;
9292
VACUUM (FREEZE) vacparted;
9393
-- check behavior with duplicate column mentions
9494
VACUUM ANALYZE vacparted(a,b,a);
95-
ERROR: column "a" of relation "vacparted" is specified twice
95+
ERROR: column "a" of relation "vacparted" appears more than once
9696
ANALYZE vacparted(a,b,b);
97-
ERROR: column "b" of relation "vacparted" is specified twice
97+
ERROR: column "b" of relation "vacparted" appears more than once
9898
DROP TABLE vacparted;

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/9ebc7781444fd15d56ed16e5312a954483e85cd9

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy