diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2019-05-08 13:16:54 -0400 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2019-05-08 13:20:16 -0400 |
commit | 61639816b870347677e6e6945604e0d9da1837ca (patch) | |
tree | 79ccf3c4630dbaec9c471f3933526a0d4d5267df /src/backend/commands/tablecmds.c | |
parent | df631ebc737e9d9cdf8d0691969d404f1bd584a4 (diff) | |
download | postgresql-61639816b870347677e6e6945604e0d9da1837ca.tar.gz postgresql-61639816b870347677e6e6945604e0d9da1837ca.zip |
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
f56f8f8da6af).
Diffstat (limited to 'src/backend/commands/tablecmds.c')
-rw-r--r-- | src/backend/commands/tablecmds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index 8e4743d1101..03daa252817 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -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 |