Re: PartitionDispatch's partdesc field - Mailing list pgsql-hackers

From Robert Haas
Subject Re: PartitionDispatch's partdesc field
Date
Msg-id CA+TgmobA0u-2-By4PwegcNq=QszVtpcLtj5cYnoutxtVLjri6g@mail.gmail.com
Whole thread Raw
In response to Re: PartitionDispatch's partdesc field  (Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>)
List pgsql-hackers
On Wed, Jul 25, 2018 at 10:42 PM, Amit Langote
<Langote_Amit_f8@lab.ntt.co.jp> wrote:
>> Another alternative, which I think might make more sense, is to make
>> use pd->key and pd->partdesc in preference to pd->reldesc->rd_partkey
>> and pd->reldesc->rd_partdesc.  It seems to me that the idea of the
>> PartitionDispatch structure is that it gathers together all of the
>> information that we need for tuple routing, so it might make sense for
>> the tuple routing code ought to get the information from there rather
>> than referring back to the RelationDesc.  See attached
>> pd-partdesc-use.patch.
>
> +1 to pd-partdesc-use.patch.

OK, that makes 2 votes for that alternative and 0 for everything else
combined, so I've committed that version.

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


pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: Auditing via logical decoding
Next
From: Robert Haas
Date:
Subject: Re: Alter index rename concurrently to