Re: Move pg_attribute.attcompression to earlier in struct for reduced size? - Mailing list pgsql-hackers

From Dilip Kumar
Subject Re: Move pg_attribute.attcompression to earlier in struct for reduced size?
Date
Msg-id CAFiTN-sDLtGeK3HpH4XPZEOwZOQ7xPJMvJeuSdZJfo_WHOz0Cw@mail.gmail.com
Whole thread Raw
In response to Re: Move pg_attribute.attcompression to earlier in struct for reduced size?  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
On Tue, 25 May 2021 at 11:16 AM, Michael Paquier <michael@paquier.xyz> wrote:
On Mon, May 24, 2021 at 02:46:11PM +0530, Dilip Kumar wrote:
> Like this.
>   if (TupleDescAttr(newTupDesc, i)->attisdropped)
>      isnull[i] = true;
>   else
>      tup_values[i] = values[i];

That would work.  Your suggestion, as I understood it first, makes the
code simpler by not using tup_values at all as the set of values[] is
filled when the values and nulls are extracted.  So I have gone with
this simplification, and applied the patch (moved a bit the comments
while on it).

Perfect.  That looks much better.

pgsql-hackers by date:

Previous
From: Neil Chen
Date:
Subject: Re: [PATCH] In psql \?, add [+] annotation where appropriate
Next
From: Dilip Kumar
Date:
Subject: Re: Different compression methods for FPI