Per suggestions from Peter Eisentraut and David Johnston.
Back-patch, like the previous commit.
Discussion: https://postgr.es/m/
[email protected]
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);
VACUUM FULL vactst;
-- check behavior with duplicate column mentions
VACUUM ANALYZE vaccluster(i,i);
-ERROR: column "i" of relation "vaccluster" is specified twice
+ERROR: column "i" of relation "vaccluster" appears more than once
ANALYZE vaccluster(i,i);
-ERROR: column "i" of relation "vaccluster" is specified twice
+ERROR: column "i" of relation "vaccluster" appears more than once
DROP TABLE vaccluster;
DROP TABLE vactst;