From 61639816b870347677e6e6945604e0d9da1837ca Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Wed, 8 May 2019 13:16:54 -0400 Subject: 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). --- src/backend/commands/tablecmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/commands/tablecmds.c') 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 -- cgit v1.2.3