Re: [PATCHES] WITH DELIMITERS in COPY

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCHES] WITH DELIMITERS in COPY
Дата
Msg-id 6368.1018840791@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCHES] WITH DELIMITERS in COPY  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: [PATCHES] WITH DELIMITERS in COPY  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Gavin Sherry wrote:
>> CREATE DATABASE also fills out a list in the same fashion =). I will
>> however have a look at revising this patch to use DefElem later today.

> Oh, I see that now.  Which method do people prefer.  We should probably
> make them all use the same mechanism.

Consistency?  Who needs consistency ;-) ?

Seriously, I do not see a need to change either of these approaches
just for the sake of changing it.  CREATE DATABASE is okay as-is, and
so are the statements that use DefElem.  I tend to like DefElem better
for the statements that we change around frequently ... for instance
the recent changes to the set of volatility keywords for functions
didn't require any changes to the grammar or the parsenode definitions.
But I think that a simple struct definition is easier to understand,
so I favor that for stable feature sets.

As for which one is better suited for COPY, I don't have a strong
opinion, but lean to DefElem.  Seems like COPY will probably keep
accreting new features.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [PATCHES] ANSI Compliant Inserts
Следующее
От: Barry Lind
Дата:
Сообщение: Re: 7.3 schedule