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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: 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 02:54:36
Message-ID: 292.1272941676@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Josh Berkus <josh(at)agliodbs(dot)com> writes:
>> quietly removing NULL is maybe good for compatibility but is wrong for
>> functionality.

> I agree. I wasn't aware of this little misfeature.

> 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.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2010-05-04 03:18:32 Re: what is good solution for support NULL inside string_to_array function?
Previous Message Tom Lane 2010-05-04 02:51:15 Re: COPY is not working