Re: [HACKERS] replace GrantObjectType with ObjectType

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: [HACKERS] replace GrantObjectType with ObjectType
Дата
Msg-id d284375d-89f0-16ea-6495-dab3fe39219c@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: [HACKERS] replace GrantObjectType with ObjectType  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Ответы Re: [HACKERS] replace GrantObjectType with ObjectType  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-hackers
On 12/20/17 10:37, Alvaro Herrera wrote:
> I think Michael's point is that instead of a "default:" clause, this
> switch should list all the known values of the enum and throw an
> "unsupported object type" error for them.  So whenever somebody adds a
> new object type, the compiler will complain that this switch doesn't
> handle it and the developer will have to think about this function.

Right.  I was actually looking at a later patch that I had not sent in
yet that had already addressed that.  So here it is.

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

Вложения

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: AS OF queries
Следующее
От: Tom Lane
Дата:
Сообщение: Re: AS OF queries