Feature: implement protocol version 3.2 BackendKeyData and query cancel message.
authorTatsuo Ishii <ishii@postgresql.org>
Tue, 15 Jul 2025 05:30:47 +0000 (14:30 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Tue, 15 Jul 2025 05:30:47 +0000 (14:30 +0900)
commit523b3d94d9b9bd5e66d547ef2c588e7205522078
treeb9540b4584100ce99e6fa5fe7a9a28048cb6c495
parent0e80ac4e57bb80db9614904878ea51dd04c845ef
Feature: implement protocol version 3.2 BackendKeyData and query cancel message.

Starting from PostgreSQL 18, frontend/backend protocol has been
changed to 3.2. In the changes the BackendKeyData and query cancel
message are modified to allow variable length cancel key.

This commit implements the changes and now we can connect to
PostgreSQL frontend and backend using 3.2 protocol.

Example session is:
PGMAXPROTOCOLVERSION="3.2" psql -p 11000 test

Author: Tatsuo Ishii <ishii@postgresql.org>
Discussion: https://www.postgresql.org/message-id/20250714.155710.1706961744888449986.ishii%40postgresql.org
src/auth/pool_auth.c
src/context/pool_query_context.c
src/include/pcp/libpcp_ext.h
src/include/pool.h
src/include/protocol/pool_process_query.h
src/include/protocol/pool_proto_modules.h
src/protocol/child.c
src/protocol/pool_process_query.c
src/protocol/pool_proto_modules.c
src/rewrite/pool_lobj.c