diff --git a/src/backend/foreign/foreign.c b/src/backend/foreign/foreign.c index 9ea93b35e86..160cf6f51c9 100644 --- a/src/backend/foreign/foreign.c +++ b/src/backend/foreign/foreign.c @@ -250,7 +250,8 @@ ForeignServerConnectionString(Oid userid, Oid serverid) if (!OidIsValid(fdw->fdwconnection)) ereport(ERROR, - (errmsg("foreign data wrapper \"%s\" does not support subscription connections", + (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), + errmsg("foreign data wrapper \"%s\" does not support subscription connections", fdw->fdwname), errdetail("Foreign data wrapper must be defined with CONNECTION specified.")));