From 062c66474a50c03f5e4117f0ea301b70de267c76 Mon Sep 17 00:00:00 2001 From: shihao zhong Date: Wed, 4 Nov 2026 09:46:09 -0500 Subject: [PATCH v1 1/2] libpq: Accept long ParameterStatus messages Since search_path became GUC_REPORT in 28a1121fd91, a search_path over 30000 bytes made libpq drop the connection. Reported-by: Daniel Gustafsson Discussion: https://postgr.es/m/3538A21B-9257-42A9-A363-058DD5AE51D3@yesql.se Backpatch-through: 18 --- src/interfaces/libpq/fe-protocol3.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/interfaces/libpq/fe-protocol3.c b/src/interfaces/libpq/fe-protocol3.c index 1fd427cb9be..dcea48cc394 100644 --- a/src/interfaces/libpq/fe-protocol3.c +++ b/src/interfaces/libpq/fe-protocol3.c @@ -42,6 +42,7 @@ (id) == PqMsg_FunctionCallResponse || \ (id) == PqMsg_NoticeResponse || \ (id) == PqMsg_NotificationResponse || \ + (id) == PqMsg_ParameterStatus || \ (id) == PqMsg_RowDescription || \ (id) == PqMsg_ParameterDescription) -- 2.37.1 (Apple Git-137.1)