]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Add error code to user-visible message.
authorJeff Davis <jdavis@postgresql.org>
Fri, 13 Mar 2026 23:07:54 +0000 (16:07 -0700)
committerJeff Davis <jdavis@postgresql.org>
Fri, 13 Mar 2026 23:07:54 +0000 (16:07 -0700)
Reported-by: Alexander Lakhin <exclusion@gmail.com>
src/backend/foreign/foreign.c

index 9ea93b35e8666f4e0a4e8f8b93f66940e1af59c0..160cf6f51c9d7fd7253cdef354ea1f7bf91f56a4 100644 (file)
@@ -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.")));