Re: [HACKERS] copy - fields enclosed by, ignore x lines

2004-10-25 Thread CSN
Ah, looks like "enclosed by" will be in PG 8 :). Is "QUOTE [ AS ] 'quote'" for the "enclosed by" character? Ignore x lines would be nice, but not as big of a deal. http://developer.postgresql.org/docs/postgres/sql-copy.html --- CSN <[EMAIL PROTECT

[HACKERS] copy - fields enclosed by, ignore x lines

2004-10-25 Thread CSN
Any chance of changing \copy and COPY to allow specifying what the fields are enclosed by (such as quotes) and to ignore the first x number of lines? I have data like below and don't know of an easy way to finesse it for importing (a simple regexp would remove quotes, but I just got tripped up on c

Re: [HACKERS] COPY with column headings

2004-08-16 Thread CSN
oesn'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 state