Re: proposal: support empty string as separator for string_to_array

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: proposal: support empty string as separator for string_to_array
Date: 2009-07-25 18:01:26
Message-ID: 13100.1248544886@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> writes:
> 2009/7/25 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:
>> There already is a definition for what string_to_array does with an
>> empty field separator, and that is not it.

> I thing, so nobody use empty separator in string_to_array, because it
> does nothing useful.

According to you, maybe not. But perhaps whoever coded the function
originally had a use-case in mind, or people may have come up with
one since then. In any case we have a perfectly good answer available
for anyone who wants this behavior. I see no reason to change here.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2009-07-25 18:21:13 Re: mixed, named notation support
Previous Message Pavel Stehule 2009-07-25 17:55:21 Re: proposal: support empty string as separator for string_to_array