Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nciol-0007ZS-Pa for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Apr 2022 07:14:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ncioj-0006OR-OB for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Apr 2022 07:14:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ncioj-0006OI-F1 for pgsql-hackers@lists.postgresql.org; Fri, 08 Apr 2022 07:14:01 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ncioh-0003aD-98 for pgsql-hackers@postgresql.org; Fri, 08 Apr 2022 07:14:00 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id E7E0232007CF; Fri, 8 Apr 2022 03:13:56 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 08 Apr 2022 03:13:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; bh=HedYUggsd7tS1GFrlYDUJtv/+RFvS6w9vZJhkM rzsY0=; b=fNU9OUXL41Ws8IwyBQRKaJ/z63Nfi3MFQomlJUfcmrmFZa9RjQf3s2 o6+xr/LxbyYwlrrVoMU9SA5ZlRLlfXSh+scc+nB9wWsBL8VnZqeR6arz9+/ylI5H t0wT5tWXE2Wef3sxZXhKJV2GPLSH0c0mUkVeYxzqMitRFD5O2bUEcnB6dYzXOibG gtoCms1GxqYWmMQEbpW7tLwM5UJL9QVbEAuy018RZ2xHWPXKKxpE2TEZYSHCnKuR 2Tgmxa/JPGbnZJ41espjLlJ/kG3umWEJTfpxOkARKMkoCkSrXUX/wwxjHh6Rryux rTTBRvFXbGpgojvIyq+UDKaJaZf+x8mA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=HedYUggsd7tS1GFrl YDUJtv/+RFvS6w9vZJhkMrzsY0=; b=YWnjLem7Zx+qxSXXIwL5xAqnJ7RmTgfYb tKvtPm+BzqpZPmcYuFJ6Ws7L2tM1UZ5c/AbkOIh4Q+IHmf1HFQn+SIOtsW8+2NoP vaF4bqwqEVu/jZ3QwiNZ9oJtt0JVhSTRMtvBv+cEY/lcIbfCY/YDszck3dT+qdRZ EzZrlsZbxT9t5j6flGN7bf7DLj4wmItW1X5g/bN5K3kHubJS1PDFLGrbfc3Qp6na d5Gj0r7c7pnoj7Oenj7CoFV0TsSKTZ1Pjln1HPvRXicXN9njGgoYm8GuSYUirHMs 5WSTfwOmd3Jwl1z4fl0iLjgRIKlbojYMlIOeuX0UVKWNJ942XnDJg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudejledguddufecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enfghrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepvdegudeuhfdtueeltedtveej heehieevueeigeelteegleejleeiueeiheegvefhnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 8 Apr 2022 03:13:54 -0400 (EDT) Date: Fri, 8 Apr 2022 16:13:47 +0900 From: Michael Paquier To: Robert Haas Cc: Tom Lane , Markus Wanner , "pgsql-hackers@postgresql.org" , Kyotaro Horiguchi Subject: Re: API stability [was: pgsql: Fix possible recovery trouble if TRUNCATE overlaps a checkpoint.] Message-ID: References: <2358496.1649168259@sss.pgh.pa.us> <3535855.1649375539@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HOBr+0Q6sB4P3WFP" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --HOBr+0Q6sB4P3WFP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 07, 2022 at 10:19:35PM -0400, Robert Haas wrote: > Yeah, that's exactly why I didn't do what Michael proposes. If we're > going to go to this trouble to avoid changing the layout of a PGPROC, > we must be doing that on the theory that extension code cares about > delayChkpt. And if that is so, it seems reasonable to suppose that it > might also want to call the associated functions. Compatibility does not strike me as a problem with two static inline=20 functions used as wrappers of their common logic. > Honestly, I wouldn't have thought that this mattered, because I > wouldn't have guessed that any non-core code cared about delayChkpt. > But I would have been wrong. That's a minor point. If you wish to keep this code as you are proposing, that's fine as well by me. -- Michael --HOBr+0Q6sB4P3WFP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmJP4KsACgkQnvQgOdby QH05TA/9EoFsvg3tapiMnBdJOHI4EItazrXqEqBlD9dTMon80P4FwSNIwV74S7RU b0XmIcZuAiCzHRC0KgWyfpjAS8Cozc7ONQf0N+ntekiZChB4AeRio82Q+Ynsu1Nk rOrhwjPVAUs/19hrOEMfkgZZfs2iP+QFIdS9WHGQ89cDaUi1X0Uuvc/ZvAmORTcC ClHqXPeztteMT5+nY4FxxsqkmqmALYe5bEjzRCRQ+I4jZup0GqGzSvdv8Z3ik+Nk HgXxS4Z9Egx5QvJCtm6+1LXUTxQci7TXl+NvnQosA4q8ctPM6iqQxDQ2HMbL8RBq o957Rf69qBdLtQ4CrBHVvKEP7QxCq13pGmfZo6IBSr8vRp+QYQH/rJJ+Kc3fSIAR w4XpDzMRjURjc9izaHHZMYrlHEd0sxkMvWzE3BS3vKvPalmdS902KbFIymV3cTXM h0IXipW+hpocdsvDgnvOwdikPI4xsRbJDZXBhetHOuJcJeE3CU2G+i0B092qiHdU ICY/RMLlMPKYdx0OA8E63CR8kvi/t2h02NTNwNjNGfuYvKPimmI7QxwXOTs21Kdw /x/A/I0n8PdPHTTDHUF564IWZvhVC4apbPNMzaktIx1qyLBFHKKZch+Bpug2RhVR 1MM3QWanFoVm1D+CZ2uOo8sbHMmaxiDAkWpBcbMNtNf/uM30EzA= =rHdG -----END PGP SIGNATURE----- --HOBr+0Q6sB4P3WFP--