From 301c54c5345b2931b3cd4742bce179d798ca1a8a Mon Sep 17 00:00:00 2001 From: zourenli <398740848@qq.com> Date: Thu, 26 Feb 2026 10:54:23 +0800 Subject: [PATCH] libpq: Fix incorrect message type in getBackendKeyData() comment The getBackendKeyData function comment incorrectly stated that the BackendKeyData message type is 'v', when in fact it is 'K' as defined in protocol.h. This fix corrects the comment to match the actual message type used in the protocol. --- src/interfaces/libpq/fe-protocol3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interfaces/libpq/fe-protocol3.c b/src/interfaces/libpq/fe-protocol3.c index 8c1fda5caf0..66397bde555 100644 --- a/src/interfaces/libpq/fe-protocol3.c +++ b/src/interfaces/libpq/fe-protocol3.c @@ -1612,9 +1612,9 @@ getParameterStatus(PGconn *conn) /* * parseInput subroutine to read a BackendKeyData message. - * Entry: 'v' message type and length have already been consumed. + * Entry: 'K' message type and length have already been consumed. * Exit: returns 0 if successfully consumed message. - * returns EOF if not enough data. + * returns EOF if not enough data. */ static int getBackendKeyData(PGconn *conn, int msgLength) -- 2.32.0