Re: pgsql: Refactor attribute mappings used in logical tuple conversion

Поиск
Список
Период
Сортировка
От Amit Langote
Тема Re: pgsql: Refactor attribute mappings used in logical tuple conversion
Дата
Msg-id CA+HiwqFrHa=1Okqj3Oao1itSRoarUXd3N01vJ9wXC8w2zi-_QA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pgsql: Refactor attribute mappings used in logical tuple conversion  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pgsql: Refactor attribute mappings used in logical tupleconversion  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-committers
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?

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.

Thanks,
Amit



В списке pgsql-committers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: pgsql: Partially deduplicate interrupt handling for background processe
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: pgsql: Refactor attribute mappings used in logical tupleconversion