Re: BUG #18974: Postgresql repeatable crash after pg_upgrade from 15 to 17.5 version in postgresql_fdw queries - Mailing list pgsql-bugs

From Sergei Kornilov
Subject Re: BUG #18974: Postgresql repeatable crash after pg_upgrade from 15 to 17.5 version in postgresql_fdw queries
Date
Msg-id 5088921751442291@mail-sendbernar-production-main-45.klg.yp-c.yandex.net
Whole thread Raw
Responses Re: BUG #18974: Postgresql repeatable crash after pg_upgrade from 15 to 17.5 version in postgresql_fdw queries
List pgsql-bugs
Hello

Yeah, I think there is a missing copy of the type field:

--- a/src/interfaces/libpq/fe-cancel.c
+++ b/src/interfaces/libpq/fe-cancel.c
@@ -119,6 +119,7 @@ PQcancelCreate(PGconn *conn)
         goto oom_error;
 
     originalHost = conn->connhost[conn->whichhost];
+    cancelConn->connhost[0].type = originalHost.type;
     if (originalHost.host)
     {
         cancelConn->connhost[0].host = strdup(originalHost.host);

Other fields of the pg_conn_host structure are copied below in the code, excepts type.

regards, Sergei



pgsql-bugs by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: Logical replication 'invalid memory alloc request size 1585837200' after upgrading to 17.5
Next
From: Fujii Masao
Date:
Subject: Re: BUG #16931: source code problem about commit_ts