Re: Implement protocol 3.2 BackendKeyData and cancel request message

From: Tatsuo Ishii <ishii(at)postgresql(dot)org>
To: pgpool-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Implement protocol 3.2 BackendKeyData and cancel request message
Date: 2025-07-15 08:52:53
Message-ID: 20250715.175253.2268867545355726159.ishii@postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgpool-hackers

>>> Starting from PostgreSQL 18, frontend/backend protocol has been
>>> changed from 3.0 to 3.2. In the changes the BackendKeyData and query
>>> cancel message are modified to allow variable length cancel key.
>>>
>>> This commit is a follow up to 766e73811 and implements the changes
>>> needed above. See attached patches.
>>>
>>> With the patch we can connect to PostgreSQL 18 frontend and backend
>>> using 3.2 protocol.
>>>
>>> Since PostgreSQL 18's psql uses 3.0 protocol by default, in order to
>>> test 3.2 protocol, you can do something like:
>>>
>>> PGMAXPROTOCOLVERSION="3.2" psql -p 11000 test
>>
>> Attached is the v2 patch which add more comments and some cosmetic
>> changes.
>
> Attached is the v3 patch which fixes a compiler error.

V3 patch pushed to master branch. Thanks.
--
Tatsuo Ishii
SRA OSS K.K.
English: http://www.sraoss.co.jp/index_en/
Japanese:http://www.sraoss.co.jp

In response to

Browse pgpool-hackers by date

  From Date Subject
Next Message Bo Peng 2025-07-17 05:37:02 Re: Proposal: make the online recovery database configurable
Previous Message Tatsuo Ishii 2025-07-15 05:34:08 Re: Implement protocol 3.2 BackendKeyData and cancel request message