Re: pgsql: Code cleanup for toast_fetch_datum and toast_fetch_datum_slice.

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-committers <pgsql-committers(at)lists(dot)postgresql(dot)org>
Subject: Re: pgsql: Code cleanup for toast_fetch_datum and toast_fetch_datum_slice.
Date: 2019-12-17 20:59:34
Message-ID: CA+Tgmoap5WvGXSPdgRpYbmc7-6m7n_mF6J9K0iE=O+M5F6y7EA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

On Tue, Dec 17, 2019 at 3:54 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> > On Tue, Dec 17, 2019 at 2:52 PM Robert Haas <rhaas(at)postgresql(dot)org> wrote:
> >> Code cleanup for toast_fetch_datum and toast_fetch_datum_slice.
>
> > florican seems unhappy with this. Looking at it now.
>
> lapwing as well; maybe some 64-bit-ish assumptions in there?

It actually seems to be due to the fact that the 32-bit machine has a
different TOAST chunk size (2000) than the 64-bit machine (1996).
There is no test which uses an amount of data that is a multiple of
the latter value, but there was a test which used data that is a
multiple of the former value, so it worked OK for me locally, but
failed (mostly by luck) with the different TOAST size.

Possibly we should add some more tests here...

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2019-12-17 22:44:56 pgsql: Fix error reporting for index expressions of prohibited types.
Previous Message Robert Haas 2019-12-17 20:56:37 pgsql: Fix bad formula in previous commit.