Fix error message for logical replication targets

This fixes an oversight from 373bda6.

Noted by Erik Rijkers.
This commit is contained in:
Michael Paquier 2019-01-13 22:36:23 +09:00
parent bb874e30fb
commit 9f527a6e9a
1 changed files with 1 additions and 1 deletions

View File

@ -622,7 +622,7 @@ CheckSubscriptionRelkind(char relkind, const char *nspname,
else if (relkind == RELKIND_FOREIGN_TABLE)
ereport(ERROR,
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
errmsg("cannot use relation \"%s.%s\" as logical replication",
errmsg("cannot use relation \"%s.%s\" as logical replication target",
nspname, relname),
errdetail("\"%s.%s\" is a foreign table.",
nspname, relname)));