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 1vi5US-00EX9U-0K for pgsql-hackers@arkaria.postgresql.org; Tue, 20 Jan 2026 06:45:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vi5UR-00GVzs-0r for pgsql-hackers@arkaria.postgresql.org; Tue, 20 Jan 2026 06:45:23 +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 1vi5UQ-00GVzj-2A for pgsql-hackers@lists.postgresql.org; Tue, 20 Jan 2026 06:45:23 +0000 Received: from fhigh-a1-smtp.messagingengine.com ([103.168.172.152]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vi5UO-001TGB-13 for pgsql-hackers@lists.postgresql.org; Tue, 20 Jan 2026 06:45:22 +0000 Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfhigh.phl.internal (Postfix) with ESMTP id 224A91400204; Tue, 20 Jan 2026 01:45:19 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Tue, 20 Jan 2026 01:45:19 -0500 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=fm2; t=1768891519; x=1768977919; bh=5XYJFD+2cz ev79bZ74jJRrY2Y8wbUOlDOt9UKs6wtlI=; b=DFPkMC7RLazH5ZhcO5yyL3JE+k KVwg2moi0upESGMR8YJ8v/HCR0WmTbT0II7aoochAr+XmAtLMQgnhH7kYNrFpZpd /tjDRlHp1PyXGT2qd8yOUa4sVaBOd9VfbLqrAEVQ1nOBUllBoQB4frq/OVgaHVVW Q70N1hQ1pCk6mVa/l1/YITUvzDTNJ5uqdk4gT1RnCSYA08kbEoi9vams+JgdItuq FdoFPzGEXoMZa3sGML+3It5E2Sf+HHyhz152vuhbFOV7ZEI/AbciQutC8p4yjIc6 aZVe8kHWoktlQhM77VBsDZwRLc+lZ7njZ9+NsBQHFQvp3vOT7hwheITqPXAQ== 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=fm2; t= 1768891519; x=1768977919; bh=5XYJFD+2czev79bZ74jJRrY2Y8wbUOlDOt9 UKs6wtlI=; b=cthVnpIP8H0ppAUJoTrX+pPGO0INTa2mk3WpmradriwcoQEbOfa lPt3nL61GKSt8Cd0t3K0fBKnY74mhLMdN0NXb9wSTvpMEvuNSoeHKzwhB4Co6rxf UVeLedXyIkmBdu/FBfzr7jn7wdOjUXVjMv+XiMZjmp66Gcksw17LuFPaubX6V0lT KnbYeIJETnlc/6cUz6NWxOu3ooV73seS0SdmY2nwePqqQcBOJkvtQfXR2OS7CLAX o/GbSdKd1C5EzuuNmJupUmJdoLkX+Zkva23mSmmtxDT4qbAkB67Tpfm7hMlxbyBF j7uS0plaZgSOL4bQbgw2KfJ9fAIXs4/2wLw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddufeeljeefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrh hlucfvnfffucdlfeehmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredttdej necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepjeeigeehveejvdegkedtgeevjeeu geehleejgeegffdvhfejfeffiefgjeejvdefnecuffhomhgrihhnpehpohhsthhgrhgvsh hqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhr ohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiipdhnsggprhgtphhtthhopeegpd hmohguvgepshhmthhpohhuthdprhgtphhtthhopeguhhgrrhhinhhshhgrhhelheesghhm rghilhdrtghomhdprhgtphhtthhopehrohgsseigiihilhhlrgdrnhgvthdprhgtphhtth hopehpvghtvghrsegvihhsvghnthhrrghuthdrohhrghdprhgtphhtthhopehpghhsqhhl qdhhrggtkhgvrhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 20 Jan 2026 01:45:16 -0500 (EST) Date: Tue, 20 Jan 2026 15:45:12 +0900 From: Michael Paquier To: Dharin Shah Cc: Robert Treat , Peter Eisentraut , pgsql-hackers@lists.postgresql.org Subject: Re: Fwd: [PATCH] Add zstd compression for TOAST using extended header format Message-ID: References: <4c70b0f6-5aba-464c-b145-464a620c1222@eisentraut.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="XB7Az5dvfReirtgS" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --XB7Az5dvfReirtgS Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 31, 2025 at 04:02:24PM +0100, Dharin Shah wrote: > Let me know what you=E2=80=99d prefer for next steps: keep this patch as a > detoast-local refactor, or respin it to align more directly with a shared > decoded external-pointer interface in the direction of the 8=E2=80=91byte= work. My apologies for the rather long silence on this thread. As the next step of this project, I am going to put my hands of what you are suggesting here, and see how I can align it with the 64-bit toast value patch: https://www.postgresql.org/message-id/CAOj6k6dEVi0NvLjMLDhyrJS_n_NZO5D_OU89= AO1u53u6NCDDwQ@mail.gmail.com What I am pretty sure about at this stage is that there is little love for the patch set I have sent on the other thread where I have been using pointer redirections for the TOAST function calls with callbacks (perhaps I'll be able to apply some of the renaming patches anyway, nobody would scream at me for that), at least nobody has put a +1 on it or just ignored it, so this approach feels dead to me. What you are suggesting upthread, though, is a direction I'd like to dig into and this comes down to how I can unify what you want to do for zstd and what I want to do with Oid8. Perhaps that you are right and that it is just simpler to invest on an interface in the detoast code, but I still see that there is nothing done for the logical decoding or amcheck code paths, which is something my other patch is able to deal with transparently. -- Michael --XB7Az5dvfReirtgS Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmlvJHgACgkQnvQgOdby QH2JJQ//SVytlF6cVgsBgFU2LHvYQsGZRx+Iug9NzXvL60SqbI53uGHALxfVBuTR OgZMHoBZX6ycmNy8thPktqitpQtts7J3QC4roCQJD6B/o4hDCL3HPPYmCfAjVypW zI8dGzcsO4BYs6lWLt+npKFpY5J7h+f53i59UGhIZ+fjE8jbLofJOFYaaba5fUY0 bAff60hPZNR0P6Yy5gqn3x6vYCj1Whi5PmpjwwP4IAXDtPnXlNITOi0wdRLyd3VF A0NQ6oRX623ee42bUAU7pYSd2LuCbAYStu8bGy9la9vvDQKsOW47JdjzruMMbvlz E4HpZ1+ifgaztJNS5RyGgNLjUXdZe7APwHpK55Mt6GA66sFcknTCRzl9nSVFyCWC wMkhto8BOBqaxu0du2aHBP9PkXtwTAwVH+jagL5sovSuYm++JO8qNcIiz2ZYwFF3 75b2VJ4ONiXn3rU7Qz4rldIDzp9tfrwxj1HdWYwlC+gwnlf2ynnIgyJPFRuQBg2j 8Hy3sj5IKvmQlJ95Utqw85jKcg+nSWCR6n8eZN7zdWj6I1NY1w0yN86SgDyBNCAq NB8S9LAhRf75qIzW6br9Fpwzz9vWXFM6AedTtne/THvyH8Y8yIphHF5tnnOUptgr 1gNP5ACfydvHIJ10/FHm+6juPFfxVpTE07N2vTRAfbDIiv7X7KU= =bkjt -----END PGP SIGNATURE----- --XB7Az5dvfReirtgS--