Re: removing unnecessary get_att*() lsyscache functions

Поиск
Список
Период
Сортировка
Искать
От
Michael Paquier
Тема
Re: removing unnecessary get_att*() lsyscache functions
Дата
Msg-id
20181023001117.GC1651@paquier.xyz
Ответ на
Список
Дерево обсуждения
removing unnecessary get_att*() lsyscache functions Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: removing unnecessary get_att*() lsyscache functions Michael Paquier <michael@paquier.xyz>
Re: removing unnecessary get_att*() lsyscache functions Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: removing unnecessary get_att*() lsyscache functions Michael Paquier <michael@paquier.xyz>
Re: removing unnecessary get_att*() lsyscache functions Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: removing unnecessary get_att*() lsyscache functions Andres Freund <andres@anarazel.de>
On Mon, Oct 22, 2018 at 07:12:28PM +0200, Peter Eisentraut wrote:
> OK, slightly reworked version attached.

+   attTup = (Form_pg_attribute) GETSTRUCT(tuple);
    attnum = ((Form_pg_attribute) GETSTRUCT(tuple))->attnum;

No need to call twice GETSTRUCT here..  The rest looks fine.
--
Michael
В списке pgsql-hackers по дате отправления
От: Michael Paquier
Дата:
От: Andres Freund
Дата:
FAQ