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 01:54:40
Message-ID: 20250715.105440.1906014753922388607.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.

Best regards,
--
Tatsuo Ishii
SRA OSS K.K.
English: http://www.sraoss.co.jp/index_en/
Japanese:http://www.sraoss.co.jp

Attachment Content-Type Size
v2-0001-Feature-implement-protocol-version-3.2-BackendKey.patch text/x-patch 26.5 KB

In response to

Responses

Browse pgpool-hackers by date

  From Date Subject
Next Message Tatsuo Ishii 2025-07-15 05:34:08 Re: Implement protocol 3.2 BackendKeyData and cancel request message
Previous Message Tatsuo Ishii 2025-07-14 06:57:10 Implement protocol 3.2 BackendKeyData and cancel request message