Re: what is good solution for support NULL inside string_to_array function? - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: what is good solution for support NULL inside string_to_array function?
Date
Msg-id 4BDF9208.10801@dunslane.net
Whole thread Raw
In response to Re: what is good solution for support NULL inside string_to_array function?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers

Tom Lane wrote:
>> Default display for NULL should be a zero-length string.
>>     
>
> That's just as broken as Pavel's suggestion.  Unless you have something
> that is guaranteed distingishable from the output of any non-null value,
> you really can't make a significant improvement here.
>
>             
>   

Right. This is the problem we solved in CSV processing by distinguishing 
between quoted and unquoted values that could be null - the CSV rule is 
that a null value isn't quoted.

cheers

andrew


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: what is good solution for support NULL inside string_to_array function?
Next
From: "Joshua D. Drake"
Date:
Subject: Re: pg_migrator to /contrib in a later 9.0 beta