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.96) (envelope-from ) id 1vuxUo-00EbCx-2S for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Feb 2026 18:50:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vuxUl-002w6r-1l for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Feb 2026 18:50:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vuxUl-002w6i-0q for pgsql-hackers@lists.postgresql.org; Tue, 24 Feb 2026 18:50:55 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vuxUd-0000000167t-099v for pgsql-hackers@lists.postgresql.org; Tue, 24 Feb 2026 18:50:50 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 61OIoXLp4004007; Tue, 24 Feb 2026 13:50:33 -0500 From: Tom Lane To: Jacob Champion cc: Jelte Fennema-Nio , pgsql-hackers@lists.postgresql.org, Andrew Dunstan , Nathan Bossart Subject: Re: pgsql: libpq: Grease the protocol by default In-reply-to: References: <3626145.1771885089@sss.pgh.pa.us> <3635497.1771889682@sss.pgh.pa.us> <3797860.1771893905@sss.pgh.pa.us> <3864574.1771898936@sss.pgh.pa.us> Comments: In-reply-to Jacob Champion message dated "Tue, 24 Feb 2026 10:13:02 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4004005.1771959033.1@sss.pgh.pa.us> Date: Tue, 24 Feb 2026 13:50:33 -0500 Message-ID: <4004006.1771959033@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jacob Champion writes: > So pg_upgrade will use max_protocol_version=3.0 with all servers v10 > and below, in practice. There's nothing wrong with that behavior, but > I think I should switch to a simple `< 1100` check in the code to > avoid misleading people, unless anyone has a better way that won't > significantly increase the cost of the backport. Simple is good here. I don't think we'd buy much by distinguishing minor versions of already-EOL servers. Also, I suspect that pg_upgrade can't get the minor version except by starting the server and asking it --- we don't record anything but major version on-disk. regards, tom lane