Re: what is good solution for support NULL inside string_to_array function?

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: what is good solution for support NULL inside string_to_array function?
Date: 2010-05-04 03:18:32
Message-ID: 4BDF9208.10801@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jan Wieck 2010-05-04 03:36:24 Re: TOAST code ignores freespace (was Tweak TOAST code)
Previous Message Tom Lane 2010-05-04 02:54:36 Re: what is good solution for support NULL inside string_to_array function?