Re: [PATCHES] WITH DELIMITERS in COPY - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PATCHES] WITH DELIMITERS in COPY
Date
Msg-id 6368.1018840791@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PATCHES] WITH DELIMITERS in COPY  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: [PATCHES] WITH DELIMITERS in COPY  (Bruce Momjian <pgman@candle.pha.pa.us>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCHES] ANSI Compliant Inserts
Next
From: Barry Lind
Date:
Subject: Re: 7.3 schedule