Re: [PATCHES] allow CSV quote in NULL - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: [PATCHES] allow CSV quote in NULL
Date
Msg-id 46AA38D2.4070908@dunslane.net
Whole thread Raw
In response to Re: [PATCHES] allow CSV quote in NULL  (Stephen Frost <sfrost@snowman.net>)
Responses Re: [PATCHES] allow CSV quote in NULL  (Stephen Frost <sfrost@snowman.net>)
List pgsql-hackers

Stephen Frost wrote:
>
> I'm honestly not a big fan of the "columnlist" approach that's been
> taken with the options.  While I understand the desire to seperate the
> parsing from the typing, making the users essentially do that association
> for us by way of making them specify how to handle each column explicitly
> is worse than just accepting that different types may need to be handled
> in different ways.
>   

Whether or not you like it, the fact is it's there. I think any solution 
should be consistent with what is done.

When CSV was first discussed we looked at doing type-specific behaviour. 
The end of the long debate was that we simply couldn't do that safely, 
and the only recourse was to require the user to specify the behaviour 
required if it differed from the default. You might be inclined to want 
to revisit that, but I am not.

cheers

andrew




pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: [PATCHES] allow CSV quote in NULL
Next
From: Stephen Frost
Date:
Subject: Re: [PATCHES] allow CSV quote in NULL