Re: COPY CSV header line feature

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: COPY CSV header line feature
Дата
Msg-id 2545.1110950574@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: COPY CSV header line feature  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Список pgsql-patches
Alvaro Herrera <alvherre@dcc.uchile.cl> writes:
> I think you should add the new reserved keyword to the
> unreserved_keywords list or some other.

*Every* keyword needs to be in one of those lists.  I'd like to have
some sort of automatic enforcement of this, because forgetting to
add a new keyword to the right list is an everyday error.

I've been thinking that it would be good if the table in keywords.c
included an indication of the reservation category of each keyword.
So one possible approach is to do that and then somehow check that
the gram.y grammar agrees --- or even better, mechanically generate
the keyword category productions in gram.y from the keywords.c data.
Not sure just how to do that though.

Any ideas?

            regards, tom lane

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: COPY CSV header line feature
Следующее
От: Neil Conway
Дата:
Сообщение: Re: Sort psql output