Re: Portal->commandTag as an enum

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Portal->commandTag as an enum
Дата
Msg-id 20200228205416.GA14159@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: Portal->commandTag as an enum  (John Naylor <john.naylor@2ndquadrant.com>)
Ответы Re: Portal->commandTag as an enum
Список pgsql-hackers
On 2020-Feb-21, John Naylor wrote:

> Thinking about this some more, would it be possible to treat these
> like we do parser/kwlist.h? Something like this:
> 
> commandtag_list.h:
> PG_COMMANDTAG(ALTER_ACCESS_METHOD, "ALTER ACCESS METHOD", true, false,
> false, false)
> ...

I liked this idea, so I'm halfway on it now.

> I'm hand-waving a bit, and it doesn't have the flexibility of a .dat
> file, but it's a whole lot simpler.

Yeah, I for one don't want to maintain the proposed DataFile.pm.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: Add LogicalTapeSetExtend() to logtape.c
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Less-silly selectivity for JSONB matching operators