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 1seid3-00B5a1-EK for pgsql-hackers@arkaria.postgresql.org; Thu, 15 Aug 2024 22:07:33 +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 1seid1-001iyO-Sn for pgsql-hackers@arkaria.postgresql.org; Thu, 15 Aug 2024 22:07:31 +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 1seid1-001iyG-IK for pgsql-hackers@lists.postgresql.org; Thu, 15 Aug 2024 22:07:31 +0000 Received: from lahtoruutu.iki.fi ([185.185.170.37]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1seicy-004vUa-FL for pgsql-hackers@postgresql.org; Thu, 15 Aug 2024 22:07:30 +0000 Received: from [192.168.1.124] (dsl-hkibng22-54f8db-125.dhcp.inet.fi [84.248.219.125]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: hlinnaka) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 4WlK3x6SCzz49Q6q; Fri, 16 Aug 2024 01:07:25 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1723759645; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mLdZjwKPM9LuUWGvIhO70n911XjkhUoMbNhK/qDVUc8=; b=jppwX8VO2+OVIZ6LQH9kTKcxmqVfQcoo51PWiL/XpJ6Q3qrSVVdKz2vGilpU17CTTZ/zXb 3cnmwcrbHTsMUs6AP3FOEwOJgDLbUPryijR/B+kvyJKBOBsQkqbHSHJoRbXWeJLhXZYlct fQrl4IkiRZO7rO/HBNtCnWpiHg579yp2/WI4vzmX/IMgeJ9Ne+oFn8CiupqI466K3LYh5l P0wtp+z8sgWJMjT0CISmh1wUuSKDqwFPwkNyKq0yrLZkQJ9I6/UBR6nPxhbzRB3/7L4V55 cYZPr0X/PclsZxMIeixl1Y86rzeDJbw9MPY7enoe40q6JwcQJkZ5+JKLXsQDvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1723759645; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mLdZjwKPM9LuUWGvIhO70n911XjkhUoMbNhK/qDVUc8=; b=DhnUr3LHWF7Oe2gPgUwPKDfyfK01St7ijf1xovjJokkQFHgGY6ljZyXRllzZJBZu0UH2eA /je1PtDDc2pFCh0Y8X/X1SsG+Lg3EPH+WOtK9mwuBwQF0WuQRyxdwsLj8cEtictg4ortRI 5hy8s3MVPfQGHZ8xjruUVHqvttHzLUid4uzVoLtddcldKeE9pIi92awAAsc2k3er4+YcoE uy00A7I81rOrZk5lyFTTbi8lvQpblXIFY7ZiDfF/TswtGd7eXX0a2KC22/MXM0qmha72Qm 3p13aiz6XluttBN3b6z9M2mCZzr1nuMrW7mu2Ct4DrokXFGJWzNCz9UPHqwO8g== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=hlinnaka smtp.mailfrom=hlinnaka@iki.fi ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1723759645; a=rsa-sha256; cv=none; b=dRZTaTEf7BgQdaKiSkfC74miA1qUmx8/AhScnWgXttvbAeV7jGfHlG1UL5dnSNWqNV8nPM cBXX2bvDfPsIvM42u/FdHzx4qy8CO5Nv4Muzd3uMLjkFffP4/5+BmH9mJC0PYjeCKMcPVA q5zb9TT0N2O7v1xn0xvvAsSyD5WopWgP2RF/oJTAif9/YyjAm8lvqAZ6Y7vpYlLQDYG1QI wb7mq3Oztwc2i029kSUFFRjHESetaNTzTzHf9edc67brgMZ5+6pxxJZRzsh7hy8WkG7xkZ Ea3P9sRcRsS6onv1e6PdUGh/qd9RUE1FXebctsWoJa+PP0iCLnanNwHYUGtxoQ== Message-ID: <08fee89e-0db2-4545-b00a-ce3436ca5075@iki.fi> Date: Fri, 16 Aug 2024 01:07:25 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Make query cancellation keys longer To: Robert Haas Cc: Jelte Fennema-Nio , pgsql-hackers , Thomas Munro References: <508d0505-8b7a-4864-a681-e7e5edfe32aa@iki.fi> <02a4eed2-98f0-4796-9d4f-12128ff44fe0@iki.fi> <27d936fd-3e1b-422e-8a9b-d0543a22b3dc@iki.fi> <3dceed41-7624-426c-b464-f47b4acb0c8e@iki.fi> <7b86da3b-9356-4e50-aa1b-56570825e234@iki.fi> Content-Language: en-US From: Heikki Linnakangas In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 15/08/2024 23:20, Robert Haas wrote: > On Thu, Aug 15, 2024 at 1:13 PM Heikki Linnakangas wrote: >> Added a "protocol_version" libpq option for that. It defaults to "auto", >> but you can set it to "3.1" or "3.0" to force the version. It makes it >> easier to test that the backwards-compatibility works, too. > > Over on the "Add new protocol message to change GUCs for usage with > future protocol-only GUCs" there is a lot of relevant discussion about > how bumping the protocol version should work. This thread shouldn't > ignore all that discussion. Just to take one example, Jelte wants to > bump the protocol version to 3.2, not 3.1, for some reasons that are > in the commit message for the relevant patch over there. Ok, I've read through that thread now, and opined there too. One difference is with libpq option name: My patch adds "protocol_version", while Jelte proposes "max_protocol_version". I don't have strong opinions on that. I hope the ecosystem catches up to support NegotiateProtocolVersion quickly, so that only few people will need to set this option. In particular, I hope that there will never be need to use "max_protocol_version=3.2", because by the time we introduce version 3.3, all the connection poolers that support 3.2 will also implement NegotiateProtocolVersion. -- Heikki Linnakangas Neon (https://neon.tech)