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 1wXRCD-003GTH-0T for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Jun 2026 22:14:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wXRC9-00DE9s-1w for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Jun 2026 22:14:45 +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 1wXRC8-00DE9j-2y for pgsql-hackers@lists.postgresql.org; Wed, 10 Jun 2026 22:14:45 +0000 Received: from fout-b1-smtp.messagingengine.com ([202.12.124.144]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wXRC6-000000024zx-0uRW for pgsql-hackers@lists.postgresql.org; Wed, 10 Jun 2026 22:14:43 +0000 Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfout.stl.internal (Postfix) with ESMTP id 9A7F51D00078; Wed, 10 Jun 2026 18:14:40 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Wed, 10 Jun 2026 18:14:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1781129680; x=1781216080; bh=mvq1+ixGZQ 5wxxtgQiL1qTyU60QOwRyDpjGCbAi2/yc=; b=xy/sEdhUke8344XwuKTQky+ZJA cm6KMxMB0To/s+vXVyNkM8coY9BUcjckBiMUP6YPvnZCzr403GKWjPPS28IaHWR1 y3WUDeWNqL6nWealOXMO6D1+wLrvlvdcYBofuw3Pwd0I1jp9T2UAbxtfzLFE642l 7F8LxSx+/irVy0EOj91QhwfA/LsO8ipjKYLhqVME4kqZE5TO0hr4DaBZXJqiU9yz k8zpb9poEZ3ai4izfJaKENKOVIGO3jqHNABPKycdMaknuugpAqt9y3RL/zfO3FAX vGwQmLvocJ23ZXTCr1Wyf5Yyuea6XPPzEvk24JJ7Ktz/VRiWRHJ3uIRPYPdA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1781129680; x=1781216080; bh=mvq1+ixGZQ5wxxtgQiL1qTyU60QOwRyDpjG CbAi2/yc=; b=dDUXibX9WYZf+sVGlaWQb8lN7tW+BrqzMSnMHwltnvgwZMdf1i4 50uMTJzDDXmbm0wmkiEOCRz72v6SVAy+I5t5JOOMnQOB0feDyO/DwSoongXVRqLI JQTihOPHxgt93p3z+GdtBwspFIEYQ+JgufqO7ZxDEc1Hu/a2enlymzM5E2uAyqeZ UA/bpuucRvWh3oURIiHM6uThV2lcZkLGgYmEJcW7yFpSM4qSgnB11nbs9JwlQCzk jihtf/dsRa6o0RCprBEkSvd6aMGF01/kuRkF/0bVkC4SNuKySZje+ibAvijJtAZ1 nVo1ajYimLXFANV9TCxVW5L78R2+Sz1TOzA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTE5BCOPUxauQDA86J2iXK6s/AUnI0NI29tbUHDQSePkT2yKm6iH11cpMghcUpHUfX qOhWlF95oFY8ptj8ul5msJfCK9hc3ZUqRMM7Iuay2mDdt6bVTOz+ouR366a0Q5vf0bJE9V KYfixeOLgTdi064PzNeX89wbs8qnZZG8YdAyQmXeO675YjjNhJUzYaSnh8K8lPsR8bj2fq 0MbCQEzADYk6aHn9oLLzb9ySrL0IlLHCJtNgbBk/sUJ2TzvsrnOltFO/gBeS+69fAcocdo c+MwL9x6SddReXKn6W5YWc+inA5FeAFjAnfTkhQKFcC3VpIfe0qcG8a95yig0SsBAimpKR 5w5c20O97gB+/9kSMhjEtR6nG//p9gPmJpNvEDEB8A2UL9LA07YADcdLZGFhPYxuyYyiU1 KneIRgeVvo+wCndG7zIMyCAvlVg76/8dzCpdEAflsMolHhjeBEDQGWe6SvPaZc46x7w2Rj DBhRPtGEGOvWtox0G3RmAknoSRbj12O2WJ4pPK7o8pshQ+lPPOHVQ5I6vC6FSPQiyUUGLn EJLLBUyYS4Fj16MBbtMDb2YlZ64eCMDxmGLxxRPeNFjweiSrOKIkfAmdHt/i280tkIfcyG ZRtsQcEv6KqRkUn9mWZ+rhi3kGcxck1ax14kkVXyxQXFegZSCvJbMKbwJsDA X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 10 Jun 2026 18:14:38 -0400 (EDT) Date: Thu, 11 Jun 2026 07:14:33 +0900 From: Michael Paquier To: Andres Freund Cc: Ashutosh Bapat , PostgreSQL Hackers Subject: Re: GetBufferDescriptor() being called for local buffers from MarkBufferDirtyHint() Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="x0yoJaDu2X6JR/fh" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --x0yoJaDu2X6JR/fh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 10, 2026 at 10:36:22AM -0400, Andres Freund wrote: > I think it *should* blow up. It doesn't because we're lacking assertions = in > GetBufferDescriptor(). But I don't think the assertions added in the patc= h are > quite right. >=20 > We can't trivially add the correct assertions, because somebody though it= was > a good idea to give GetBufferDescriptor() a uint32 parameter, which seems > completely wrong to me. This one is not as old as I expected: 3ac88fddd92c. You're right that switching that to be signed would be a correct first step forward. -- Michael --x0yoJaDu2X6JR/fh Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmop4ckACgkQnvQgOdby QH2NEA/8CwvTf90gKvIGeB1ne5MqwSHoVE2CExhBxd2BJ9ziJZeczEJmA5kcyXQr GWeqMQA8m28eHF3pECyv/o0qGRLpzSybjRT9wSDCAZAnnAGBf5S/7eqlZinSiNyR GniAFPiB7xQ4lpdQQW2uTnO3zHURG1069Awn198S5CzT/pVGw81WBNTeOp8aGMmp K4xYMgcreZwmNooNj9T9KVmrQpfthNHvyUhfTSS8nB6a4FPqy24bRUC92YFDqf8R V0uKYPNJm7KwEjkc20pP7rG7saisWi75RVc3CJgN74zFapKU581Lm4J84ALBXcxL 2mXxG7PslHvflF1SChbeYiNb9aNBc8mQ8Q2Ar7soqjF83Gh2anVRwsnjPeloNj1c J6FlIlYYriJnFQI3jEkkh+rzXqyjiQT0d/gKFaIZ51VrQFMFYZyYX6z9HLYnLnsZ lpXaRi2x5DpOy5Lyyyhi8Bw6eMmy6NYnO/XtAUp4vvUMfmNc5HSzCE39mH5gXK84 mnpcxtk6DvVkcfVjv9M4/Xj9Tp75y4ESfBZaR0mZhyXPVkODTkb6S2RX7QdqgO1Q MT0ZKCpxLUt/X9amw4wCebGjJNjOXZKeGq410igUBGvmICVPhA6DF5Tl5o55aBWw PkeFosiRNaSUYrCYxdBpwt+Zyf1F6uFby8bpsIBp/qI5pk+d54Y= =918J -----END PGP SIGNATURE----- --x0yoJaDu2X6JR/fh--