Re: Updated COPY CSV patch - Mailing list pgsql-patches

From Andrew Dunstan
Subject Re: Updated COPY CSV patch
Date
Msg-id 3039.24.211.141.25.1081935443.squirrel@www.dunslane.net
Whole thread Raw
In response to Re: Updated COPY CSV patch  (Karel Zak <zakkr@zf.jcu.cz>)
List pgsql-patches
Karel Zak said:
> On Tue, Apr 13, 2004 at 10:43:35AM -0400, Tom Lane wrote:
>> Andrew Dunstan <andrew@dunslane.net> writes:
>> > Thinking about this some more .... maybe the right rule would be
>> > "quote  all non-numeric non-null values".
>>
>> And how would you define "numeric"?
>
> And don't  forget that  number format depend  on locale. Now  we ignore
> LC_NUMERIC, but  maybe at  some time  in future  we will  support it. I
> think the best solution is quote all values including numerics too.
>
> 123,456  (in Czech this is one number with decimal "point" ;-)
>

I am assuming that such users would use a delimiter other than a comma.
Any string that contains the delimiter *must* be quoted, regardless of
type. That's just the way CSVs work - it's not an artifact of ours.

cheers

andrew





pgsql-patches by date:

Previous
From: "Andrew Dunstan"
Date:
Subject: Re: Updated COPY CSV patch
Next
From: Peter Eisentraut
Date:
Subject: Re: Updated COPY CSV patch