Re: [HACKERS] replace GrantObjectType with ObjectType

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: [HACKERS] replace GrantObjectType with ObjectType
Дата
Msg-id 2fc44219-2841-dc40-2f6a-3b3d9ea14992@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: [HACKERS] replace GrantObjectType with ObjectType  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On 12/15/17 14:10, Robert Haas wrote:
>> There is an argument for having a big array versus the switch/case
>> approach.  But most existing code around object addresses uses the
>> switch/case approach, so it's better to align it that way, I think.
>> It's weird to have to maintain two different styles.
> Eh, really?  What about the two big arrays at the top of objectaddress.c?

They are not indexed by object type.  I can't find any existing array or
other structure that fits into what this patch is doing (other than the
one this patch is removing).

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


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

Предыдущее
От: Haisheng Yuan
Дата:
Сообщение: Bitmap table scan cost per page formula
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] replace GrantObjectType with ObjectType