0001-add-ParameterDescription-to-long-message-types.patch

text/x-patch

Filename: 0001-add-ParameterDescription-to-long-message-types.patch
Type: text/x-patch
Part: 0
Message: Add ParameterDescription message to libpq frontend long message types

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: format-patch
Series: patch 0001
Subject: add ParameterDescription to long message types
File+
src/interfaces/libpq/fe-protocol3.c 2 1
From 6036564be819db0beb3efc1ad52c981922d52529 Mon Sep 17 00:00:00 2001
From: Ning Sun <sunning@greptime.com>
Date: Wed, 1 Apr 2026 11:53:38 +0800
Subject: [PATCH] add ParameterDescription to long message types

---
 src/interfaces/libpq/fe-protocol3.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/interfaces/libpq/fe-protocol3.c b/src/interfaces/libpq/fe-protocol3.c
index 8c1fda5caf0..7fd49cb151e 100644
--- a/src/interfaces/libpq/fe-protocol3.c
+++ b/src/interfaces/libpq/fe-protocol3.c
@@ -42,7 +42,8 @@
 	 (id) == PqMsg_FunctionCallResponse || \
 	 (id) == PqMsg_NoticeResponse || \
 	 (id) == PqMsg_NotificationResponse || \
-	 (id) == PqMsg_RowDescription)
+	 (id) == PqMsg_RowDescription || \
+	 (id) == PqMsg_ParameterDescription)
 
 
 static void handleFatalError(PGconn *conn);
-- 
2.53.0