Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h2Yar-00067A-7F for pgsql-bugs@arkaria.postgresql.org; Sat, 09 Mar 2019 09:48:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h2Yap-00050K-7c for pgsql-bugs@arkaria.postgresql.org; Sat, 09 Mar 2019 09:48:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h2Yap-00050C-0p for pgsql-bugs@lists.postgresql.org; Sat, 09 Mar 2019 09:48:35 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h2Yaj-0002X8-Dm for pgsql-bugs@lists.postgresql.org; Sat, 09 Mar 2019 09:48:34 +0000 Received: from [192.168.127.1] (port=43252 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1h2Yag-00044J-Ny; Sat, 09 Mar 2019 09:48:26 +0000 Received: from [127.0.0.1] (port=31829 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1h2Yaf-000IY8-V3; Sat, 09 Mar 2019 09:48:26 +0000 From: Andrew Gierth To: gmail Vladimir =?utf-8?Q?Kokovi=C4=87?= Cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15653: pg_detoast_datum_packed problem In-Reply-To: <5236e747-2107-35f8-6741-99298f0bd6a4@gmail.com> ("gmail Vladimir \=\?utf-8\?Q\?Kokovi\=C4\=87\=22's\?\= message of "Sat, 9 Mar 2019 10:03:38 +0100") Message-ID: <87r2bg9yb2.fsf@news-spur.riddles.org.uk> References: <15653-a9979a97bd11577d@postgresql.org> <8a0d54a5-1c94-aa00-7e22-7d16566839b4@gmail.com> <13b4fc8a-b790-ddec-bf02-fe99ed793a5b@gmail.com> <87a7i5b2ok.fsf@news-spur.riddles.org.uk> <5236e747-2107-35f8-6741-99298f0bd6a4@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Sat, 09 Mar 2019 09:48:24 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "gmail" =3D=3D gmail Vladimir Kokovi=C4=87 writes: gmail> Hi Andrew. gmail> I changed VARSIZE to VARSIZE_ANY_EXHDR and VARDATA in gmail> VARDATA_ANY as you said, but there is still a problem I can not gmail> understand ! Your message formatting was all messed up, but I can see that you are still subtracting VARHDRSZ - don't do that: VARSIZE_ANY_EXHDR already has the header size subtracted (hence "EXHDR"), it returns only the data size. (The header size is variable, 1 or 4 bytes, so it wouldn't make sense to include it.) --=20 Andrew (irc:RhodiumToad)