Re: removing unnecessary get_att*() lsyscache functions

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: removing unnecessary get_att*() lsyscache functions
Дата
Msg-id 9d140f47-1339-00cd-0bc2-3e4418c37253@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: removing unnecessary get_att*() lsyscache functions  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: removing unnecessary get_att*() lsyscache functions  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
On 19/10/2018 16:00, Michael Paquier wrote:
>> -     if (get_attidentity(RelationGetRelid(rel), attnum))
>> +     if (TupleDescAttr(RelationGetDescr(rel), attnum - 1)->attidentity)
> I find this style heavy, saving Form_pg_attribute into a different
> variable would be more readable in my opinion..

OK, slightly reworked version attached.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Вложения

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

Предыдущее
От: Alexey Kondratov
Дата:
Сообщение: Re: [Patch] pg_rewind: options to use restore_command fromrecovery.conf or command line
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [Patch] pg_rewind: options to use restore_command fromrecovery.conf or command line