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 1pzss2-0002UD-8Q for pgsql-bugs@arkaria.postgresql.org; Fri, 19 May 2023 05:41:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pzss0-0003oB-Dt for pgsql-bugs@arkaria.postgresql.org; Fri, 19 May 2023 05:41:40 +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 1pzsry-0003nz-VM for pgsql-bugs@lists.postgresql.org; Fri, 19 May 2023 05:41:40 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pzsrp-000fSi-Mq for pgsql-bugs@lists.postgresql.org; Fri, 19 May 2023 05:41:38 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 2CEAD5C00A1; Fri, 19 May 2023 01:41:28 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Fri, 19 May 2023 01:41:28 -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:sender :subject:subject:to:to; s=fm1; t=1684474888; x=1684561288; bh=kw ZGC4kgg7M4DF69QhejNdYPLScbO7LNWMvbTUfkiF4=; b=LIq0pRqhtL69pUfZ4U fMKiK3gVnDdZ9g5MVRjtL/Ns5xfrkDsmfNGphltKNKoVJ5OG3v8K39PVAhbSSC9f yKWTaTYHY0NyFHydOdm8lQOzlhjdB2wzwQRewr3HWfbAB615/D1P+vTD/fF6obhv W+o/VE+8zvrmSJf9kvQyGdp6XmP91Q7QXkhU7RKRBJR24XbZHo04tEeoKdLBZBzj cll5F06fNrl1ydXTIBN6Lf1jxEd3GcFMeyvGb4+UDZst2Ga9I0i8v0i6To7xTrx9 Z77F2qgS9TRcxek13nZrZnnP3tPDz8ZMnu7D/wkhm7cRDlS4gpYW7qpgUkUoVm4E zsZQ== 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:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1684474888; x=1684561288; bh=kwZGC4kgg7M4D F69QhejNdYPLScbO7LNWMvbTUfkiF4=; b=vgkjksc0naUUCNXWDDFriOs2C++Sa qhlG0jIo980SgQFPPyn7/olevSC5wHMWl6q23G2vYa76B1CRCXL1R3FJfUECApyO 7qOrIrSoBAF1y52/vJd0y7zpsw9taN+v4Qh0VPuP+7z0pfslO+bQ2iRoorU1Zc12 ieT5R31k9mdYBj2Qn5cSbpP/i62rhSI/De1SNhS8a708jyHOQrLKQuC/kv/owhGN eUtVrmxwnijYcpu4ISV5v6H2yMegTZ0Dswb7tFs8YqANfffARNe+ksSYOy1FDA7X QQHjyDSTiXJL8VCJeHTH34pZf2s9L3hhNyGbO8bjq8m3VcWoxby4pskag== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeeigedgleelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 19 May 2023 01:41:26 -0400 (EDT) Date: Fri, 19 May 2023 14:41:22 +0900 From: Michael Paquier To: Alexander Lakhin Cc: pgsql-bugs@lists.postgresql.org, Andrey Borodin Subject: Re: BUG #17884: gist_page_items() crashes for a non-leaf page of an index with non-key columns Message-ID: References: <17884-cb8c326522977acb@postgresql.org> <92873f8d-a9b1-0ee8-5753-ee4a1664fb0e@gmail.com> <8a991814-97c0-81d6-1e24-60c26308f005@gmail.com> <457826a7-95a6-96ae-dabc-6e07d8020a7b@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fCiIHDKlKyiZUXsw" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --fCiIHDKlKyiZUXsw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, May 18, 2023 at 04:16:24PM +0900, Michael Paquier wrote: > The format output could be tweaked forever, so if there are arguments > for more improvements, we could always discuss that later as adapted > and the tests will be here to provide coverage. I am planning to > apply and backpatch that down to v14 tomorrow. Well, I have woken up on this one and using parentheses was still confusing when I attached composite types into the INCLUDE clause, so I have looked again at record_out() and hstore, and noted that the part where we apply the double quotes to the values is actually ~15 lines. With that, it is easily possible to apply it to all the values, giving a representation close to how rows display for a nice result. So, at the end, I have used that, reduced a bit the scope of the tests, and applied the result down to 14. Note the trick with regexp_replace() to avoid some issues I noticed with alignment when using -m32 for the non-leaf page when using INCLUDE. The documentation needed also a refresh to show the new output generated. -- Michael --fCiIHDKlKyiZUXsw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmRnDAIACgkQnvQgOdby QH1QvQ/+Ka5TxXmUFf27dEJiOvaoTxxNhmIiFLhO3o3VmHRc6htWGy7YUvnv4YON ttBAVp6s37CPGkezNAOS6rZDN77QKGKcgfHXfPX0DDywGobNeDRUlKggu5rz0inC BYpJXjQ+dgOtqaPZdqlPtx0NgyV1Vxdf/CeUJqcJch6xnINJrSMcfPuSUF7jiQAQ eomxNGvGy1FwfavunGSl42UybHYOPfGC0sroc41Kn3Bm9/fq9eOdmzXCnjL1rkGf rOkQCxNZpaoKbwZTKZqKiq+WBhp3d36Vr+WRFMejBcdKO6O2Qub9LWQ3CW4F5E8x ZUM8KevAzov7WncO1s+OPocwY72ypZjxwPwqiI2Bz4oGL0NAN7BkxposZX9fNCUZ L9ISL05fS4odkUKoXBc2lEud4pHsisUy6RFSPvR624OIdfL3ycjgeBPQn6Aix4zZ +BmlHj/reUjglA2KMy5ga00uDbgPmzljRdRx7NUmIzkP37iXsbANpXV99HNILyIY EH5/ZRkqI+kY0YpDty6rvpb+lj96nd2J8n5vA4EZkSzWywXJXKkmzbscjHVbbu50 rdS4Z3mBfKkwCGTuR4TfmhOJMukxuNR3TNcbzhAG38KCWpH8mTp6YFikKl3gD+sO U0wAMFf34MqM7pVcwaVwGFpSfRQEFiC7d8THeyrdsR98ssufl4g= =Auib -----END PGP SIGNATURE----- --fCiIHDKlKyiZUXsw--