From: Michael Paquier <michael@paquier.xyz>
To: Amit Langote <amitlangote09@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Refactor attribute mappings used in logical tuple conversion
Date: Thu, 19 Dec 2019 10:38:08 +0900
Message-ID: <20191219013808.GB4202@paquier.xyz> (raw)
In-Reply-To: <CA+HiwqFrHa=1Okqj3Oao1itSRoarUXd3N01vJ9wXC8w2zi-_QA@mail.gmail.com>
References: <E1ihTiP-0001A2-Lk@gemulon.postgresql.org>
<20191218101338.GB325369@paquier.xyz>
<2517.1576679853@sss.pgh.pa.us>
<CA+HiwqFrHa=1Okqj3Oao1itSRoarUXd3N01vJ9wXC8w2zi-_QA@mail.gmail.com>
On Thu, Dec 19, 2019 at 10:23:32AM +0900, Amit Langote wrote:
> On Wed, Dec 18, 2019 at 11:37 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> TBH, though, I wonder if this doesn't indicate you've put this
>> function in the wrong header to begin with. Why does it belong
>> in rewriteManip?
Thanks for the fix! I was going to address that this morning to
notice that you already committed a fix.
> Assuming you are talking about map_variable_attnos(), it's always been
> in rewriteManip.c / rewriteManip.h since it was added by 541ffa65c32.
>
> While reviewing this patch, I had the idea of moving it to the new
> header attmap.h, but thought it might be a good idea to keep attmap.c
> limited to just building the maps and not move into it other functions
> that do something useful with those maps, like translating expression
> trees, converting tuples, etc.
I'd rather keep attmap.c focused on its basic work which is to make
and build the attribute maps. For map_variable_attnos() & co, I am
wondering if we should not split things even further. This code is
located now in the rewriter, but we make use of it in the executor for
partitioning.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz, amitlangote09@gmail.com, tgl@sss.pgh.pa.us
Subject: Re: pgsql: Refactor attribute mappings used in logical tuple conversion
In-Reply-To: <20191219013808.GB4202@paquier.xyz>
References: <E1ihTiP-0001A2-Lk@gemulon.postgresql.org> <20191218101338.GB325369@paquier.xyz> <2517.1576679853@sss.pgh.pa.us> <CA+HiwqFrHa=1Okqj3Oao1itSRoarUXd3N01vJ9wXC8w2zi-_QA@mail.gmail.com> <20191219013808.GB4202@paquier.xyz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox