Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ubUto-001Yj0-9B for pgpool-hackers@arkaria.postgresql.org; Tue, 15 Jul 2025 01:56:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1ubUsl-00GMgY-S3 for pgpool-hackers@arkaria.postgresql.org; Tue, 15 Jul 2025 01:55:00 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ubUsl-00GMgP-8m for pgpool-hackers@lists.postgresql.org; Tue, 15 Jul 2025 01:55:00 +0000 Received: from meldrar.postgresql.org ([2a02:c0:301:0:ffff::31]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ubUsi-007KR5-0I for pgpool-hackers@lists.postgresql.org; Tue, 15 Jul 2025 01:54:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=postgresql.org; s=20171124; h=Content-Transfer-Encoding:Content-Type: Mime-Version:References:In-Reply-To:From:Subject:To:Message-Id:Date:Sender: Reply-To:Cc:Content-ID:Content-Description; bh=8kM2euIiM0/hVBnTxzPW0I2fPiz5+TCsGsvnwWqDgf4=; b=Naac/4Wb7Jf8O4K1nGpSN2kY3U VHbp5aMiQcqhLIL6bEGTkhFYxLmrGkkBjNIHTDl/CZGKpfre2XbqQu/lm9FJV0v4LpB1lpjVmCstL Hwi0D1BPOl5CimQX4PMFa4ZcHEe4Qsp5jqzXIoUzssNYUHcUC0o8LwhiosMkOsRUCnLK6MnkZh+zS fGfv0qHK7uKaGJxn+5hIu6rI5CrHY4coVuVut80q7Mw/RL4bLlGAnk0j45O2QsIyf03m53gdbadzh /LvLRo6W+kJy8qcYNSuq/1Oz3nmEkWuHC4CsLRgj+MEY5hCfMk+E592u98m1cerdBQIGfURJCoX5H 9LoXtv+g==; Received: from [2409:11:4120:300:872f:a3bb:594c:65dc] (helo=localhost) by meldrar.postgresql.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 (Exim 4.96) (envelope-from ) id 1ubUsb-00AT6d-2l for pgpool-hackers@lists.postgresql.org; Tue, 15 Jul 2025 01:54:52 +0000 Date: Tue, 15 Jul 2025 10:54:40 +0900 (JST) Message-Id: <20250715.105440.1906014753922388607.ishii@postgresql.org> To: pgpool-hackers@lists.postgresql.org Subject: Re: Implement protocol 3.2 BackendKeyData and cancel request message From: Tatsuo Ishii In-Reply-To: <20250714.155710.1706961744888449986.ishii@postgresql.org> References: <20250714.155710.1706961744888449986.ishii@postgresql.org> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Tue_Jul_15_10_54_40_2025_664)--" Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2409:11:4120:300:872f:a3bb:594c:65dc (failed) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ----Next_Part(Tue_Jul_15_10_54_40_2025_664)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit > 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 ----Next_Part(Tue_Jul_15_10_54_40_2025_664)-- Content-Type: Text/X-Patch; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="v2-0001-Feature-implement-protocol-version-3.2-BackendKey.patch"