mirror of
https://github.com/postgres/postgres.git
synced 2025-10-31 10:30:33 +03:00
Fix error messages
Some messages related to foreign servers were reporting the server name
without quotes, or not at all; our style is to have all names be quoted,
and the server name already appears quoted in a few other messages, so
just add quotes and make them all consistent.
Remove an extra "s" in other messages (typos introduced by myself in
f56f8f8da6).
This commit is contained in:
@@ -8184,7 +8184,7 @@ addFkRecurseReferencing(List **wqueue, Constraint *fkconstraint, Relation rel,
|
||||
if (rel->rd_rel->relkind == RELKIND_FOREIGN_TABLE)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
|
||||
errmsg("foreign keys constraints are not supported on foreign tables")));
|
||||
errmsg("foreign key constraints are not supported on foreign tables")));
|
||||
|
||||
/*
|
||||
* If the referencing relation is a plain table, add the check triggers to
|
||||
@@ -8572,7 +8572,7 @@ CloneFkReferencing(List **wqueue, Relation parentRel, Relation partRel)
|
||||
if (partRel->rd_rel->relkind == RELKIND_FOREIGN_TABLE)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
|
||||
errmsg("foreign keys constraints are not supported on foreign tables")));
|
||||
errmsg("foreign key constraints are not supported on foreign tables")));
|
||||
|
||||
/*
|
||||
* The constraint key may differ, if the columns in the partition are
|
||||
|
||||
Reference in New Issue
Block a user