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 1vuwuR-00EChx-0o for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Feb 2026 18:13:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vuwuP-002jyS-0a for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Feb 2026 18:13:21 +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.96) (envelope-from ) id 1vuwuO-002jyG-2m for pgsql-hackers@lists.postgresql.org; Tue, 24 Feb 2026 18:13:20 +0000 Received: from mail-qt1-x834.google.com ([2607:f8b0:4864:20::834]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vuwuH-00000000znw-36Mx for pgsql-hackers@lists.postgresql.org; Tue, 24 Feb 2026 18:13:16 +0000 Received: by mail-qt1-x834.google.com with SMTP id d75a77b69052e-506aa68065eso51591201cf.1 for ; Tue, 24 Feb 2026 10:13:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1771956794; cv=none; d=google.com; s=arc-20240605; b=OdyrPCE3SKLe+8IjjbTm8V5aNo/cUN8glgcJ0h2P4cY/bAg6q70oQFct0WAVz2Ffin 0JTxHq60uR36iB5aemVD8yR6UliMF/IiiH4XydRAHs/hcm7v52hPrG0KlJOdHvihSeAo gfjNj1PL4iMJgC7pzrmvZsFPc6v1u1zlvh3zprECyhcBsvYGehST/heYiy/OoS1g/YQ3 8TAMmWD9HL75WVkRDfPg3UR2XZ+z0SnmVvChrPxxcFTdUkibertJV+Tz/hCI/7+87gSe bfdbP4uwKDKE9mVL7Z7o3GAza3nHKjvafQro/a5px5Ir3exMTNSSXoqTlpDRVra6JPsz yUBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Ri9HxRl2RZ0Zgvv4WhP1sHg/EaANc11aoodofbO3FYQ=; fh=RODj2voEs9zqYaKHwv92DR1r8i3Lyqv23mLsG2XsjHc=; b=MSUdg/lj5q+SusTJpqOEAGp+XV13M2oAARklf6XXfbXZUU+KPrDD1VjmctI+WX57Tq 3NLIoIw/yPQvCgpgHjhubZX9V0Q//ZnM91XE5b7twchwgdrCH8Vv9JURgY1nO13ImIwt Eacy53jw9+8UVOiueVPeUtw+v1YoYkkI4sGvWvi0MOOU9VSaEzq2anfCZXaPdq5d3ph/ W1Cr8B9ZN9O6LK1BvqosB9KURqxbp238V3tHzURIGWJRSeFHTUJSrLTYhfPj+fR0PLYX ya9Y/XwHtLYyGQbKtG4bzhhAmGIroLpNne9Hp/62dnrhGjE9ncoggKXdGsnfNK9LvctF T+Sw==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1771956794; x=1772561594; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Ri9HxRl2RZ0Zgvv4WhP1sHg/EaANc11aoodofbO3FYQ=; b=N6ZV5FVvVah+U4Z+cYp/cGAk5TJeY3sqta5qT9C0NzAzsRQRJp4as6X5ae6ezdChjp NJ/qa7Erf/seGjmVlfziBLo1U8V8Q+vTpqJoCBE83HiorsLCj6fqmUroRWteiy85pEuf ktQACTVE919czYqoQqF3yweJXxWCouY0HnUd4+76TfWNtTN/0JSU6DMFEdH0+dN518Db g4L2Fh9wwACXec51DAOQtr1TKzAtbET4G68447B7KsGt45uoMQTBYgNM9ZqcdJ6P8zdk jfDuzd3wL1SXz5vZDSch9KCe8lrowFH1LsGJoXHQ8Hp4+7s8DXgMvZNm6CoS04AgJ3lU Vb4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771956794; x=1772561594; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Ri9HxRl2RZ0Zgvv4WhP1sHg/EaANc11aoodofbO3FYQ=; b=k9P4ky/dyII1XQWVIi+Nc8Ke+MMED5kLgJHA2Cb4Pg2w+u71yZkwSZs+0SGVuIBVG6 iYvMRyXzExrfWICdR7P3w1kmPPQJTJrusfb0hsm2mKpjzqxWrYJ6IKrEjeJBymd3ZEXM 4qu/CHPonU0vTsPwZgpbUV4RHCR4WtHk4hzP8Gen3INrA8u6A3uVFuEqH2we4XUo3QSK c0lqohp6XiOMzrCwXphwjLFnehso4Z0LBjblsisWZOW5SmhkK9Cd5wGeXYdDf0K4Jkzi 9yfcWen2m3dPg/sUFf61u8j3SG9AQwndiclF9hADBbSc6yWxR5Zrt5SqCDVyOM3B8L2R Jhfw== X-Forwarded-Encrypted: i=1; AJvYcCVFRWXE6cjfQVrzKg75R+pkU+sDIHm+BC7FxXwmPWlkK2Nvt83efzmh80XlFkYkp5Hl6on+1YmEHCojWJcH@lists.postgresql.org X-Gm-Message-State: AOJu0YyFG6jLrNfj6xQ7CiWLptB1yWpvSuejtmWtQgFYzD8QhafMn4xS V5uYPnVKwrgdC1y54DxTVNqtIEvV4InMJL34Lynf1aPBLySsEO3z59f5N94CtDe9j+RftNP9y5B q8ITA//S+v/3zYWEwcsk808kDb3LEBW6eENcKlFfA X-Gm-Gg: AZuq6aJQzrly48IMLbG1WuQK20Ih+/SM7+MiUqWrns1x017lm/dL+hF3nd5efSAXWnh oFX7Ej471Sv3U0zjlEnR5niV2jraZwFM7n2fpoTv3t0MqIGaLWpMwCL+bZx+hNa5qKlacNSpE6l nEekjebfryIKkVDcxntzlPysv4RM0mHUPkkLZN+RY4LQ9ZYP/ml83/eWF5F2jX0/iJtucxlJyXd DavBg4USiMyusXSCMc2IcQeHcA7UYuPypd249OP+rKgPvJmiSkfoMUyxsu4ziC3zJO+oSDkgePp fsKaLcwA7Q== X-Received: by 2002:ac8:5f47:0:b0:4ff:a46b:3af3 with SMTP id d75a77b69052e-5070bbde6c9mr177321001cf.16.1771956793689; Tue, 24 Feb 2026 10:13:13 -0800 (PST) MIME-Version: 1.0 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> In-Reply-To: From: Jacob Champion Date: Tue, 24 Feb 2026 10:13:02 -0800 X-Gm-Features: AaiRm51EMFwBewc344rzniQ5IdxsgapF-M39-FHc-bsJLhYOFsACzoY2fHTBXMM Message-ID: Subject: Re: pgsql: libpq: Grease the protocol by default To: Tom Lane Cc: Jelte Fennema-Nio , pgsql-hackers@lists.postgresql.org, Andrew Dunstan , Nathan Bossart Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Feb 24, 2026 at 9:18=E2=80=AFAM Jacob Champion wrote: > I still need to run a sanity check with the > other 9.x lines to make sure I've selected the right cutoffs. The cutoffs don't behave the way I thought they would. Yesterday, I was about to complain that cluster.major_version was poorly named -- why call it that if you have to pass it through GET_MAJOR_VERSION() to get at what you want? -- but it does in fact contain _only_ the major version information, because that's all that PG_VERSION tells us. And unfortunately we don't save the result of the version check for the old postgres binary anywhere. So pg_upgrade will use max_protocol_version=3D3.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. (I could potentially follow up with an improvement on HEAD, if the cost-benefit makes sense, but I'm not sure it does.) --Jacob