Re: multiline CSV fields

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: multiline CSV fields
Дата
Msg-id Pine.BSO.4.56.0411292031090.15008@leary.csoft.net
обсуждение исходный текст
Ответ на Re: multiline CSV fields  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: multiline CSV fields  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: multiline CSV fields  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers

On Mon, 29 Nov 2004, Andrew Dunstan wrote:

> Longer term I'd like to be able to have a command parameter that 
> specifies certain fields as multiline and for those relax the line end 
> matching restriction (and for others forbid multiline altogether). That 
> would be a TODO for 8.1 though, along with optional special handling for 
> first line column headings.
> 

Endlessly extending the COPY command doesn't seem like a winning 
proposition to me and I think if we aren't comfortable telling every user 
to write a script to pre/post-process the data we should instead provide a 
bulk loader/unloader that transforms things to our limited COPY 
functionality.  There are all kinds of feature requests I've seen 
along these lines that would make COPY a million option mess if we try to 
support all of it directly.

- skipping header rows
- skipping certain data file columns
- specifying date formats
- ignoring duplicates
- outputting an arbitrary SELECT statement

Kris Jurka



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

Предыдущее
От: Mark Wong
Дата:
Сообщение: 8.0beta5 results w/ dbt2
Следующее
От: Jan Wieck
Дата:
Сообщение: Re: Error handling in plperl and pltcl