Re: COPY with column headings

Поиск
Список
Период
Сортировка
От CSN
Тема Re: COPY with column headings
Дата
Msg-id 20040817043303.71469.qmail@web52903.mail.yahoo.com
обсуждение исходный текст
Ответ на COPY with column headings  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
That'd likely be useful. Either specify the column
names with COPY or \copy, or put them in the data file
and pass an option to the command to look for them.
The only time this could be a problem is if you forget
to tell COPY to look for the field names in the file
(AND specify the field names to COPY), and the values
for the field names are such that they don't cause
data errors (probably pretty slim chance).

I'd also really like to see the ability to specify
default values for fields not included in the data
file (field defaults in the table definition is
limited and doesn't fill the order when you need to
specify various foreign key ids, specific times,
etc.).

CSN


>>>>>>>>>>>>>>>>>>>
Someone just asked about a COPY capability to supply
the column headings
as the first line of the copy statement.  Do we want
to support
something like that?  Does anyone else want such functionality?

    
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 


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

Предыдущее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: Release notes for upgrading
Следующее
От: "Hicham G. Elmongui"
Дата:
Сообщение: Re: pulling projection up in plans