fix-connection-handling-in-postgres-fdw.patch
application/octet-stream
Filename: fix-connection-handling-in-postgres-fdw.patch
Type: application/octet-stream
Part: 0
Message:
Use-after-free issue in postgres_fdw
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: unified
| File | + | − |
|---|---|---|
| contrib/postgres_fdw/connection.c | 1 | 4 |
diff --git a/contrib/postgres_fdw/connection.c b/contrib/postgres_fdw/connection.c
index 192f8011160..e1e296c5859 100644
--- a/contrib/postgres_fdw/connection.c
+++ b/contrib/postgres_fdw/connection.c
@@ -1389,15 +1389,12 @@ pgfdw_reject_incomplete_xact_state_change(ConnCacheEntry *entry)
if (entry->conn == NULL || !entry->changing_xact_state)
return;
- /* make sure this entry is inactive */
- disconnect_pg_server(entry);
-
/* find server name to be shown in the message below */
server = GetForeignServer(entry->serverid);
ereport(ERROR,
(errcode(ERRCODE_CONNECTION_EXCEPTION),
- errmsg("connection to server \"%s\" was lost",
+ errmsg("connection to server \"%s\" cannot be used due to abort cleanup failure",
server->servername)));
}