mirror of
https://github.com/postgres/postgres.git
synced 2026-03-22 10:30:21 -04:00
Add error code to user-visible message.
Reported-by: Alexander Lakhin <exclusion@gmail.com>
This commit is contained in:
parent
b1f14c9672
commit
9b860373da
1 changed files with 2 additions and 1 deletions
|
|
@ -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.")));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue