Re: proposal: support empty string as separator for string_to_array - Mailing list pgsql-hackers

From Tom Lane
Subject Re: proposal: support empty string as separator for string_to_array
Date
Msg-id 13100.1248544886@sss.pgh.pa.us
Whole thread Raw
In response to Re: proposal: support empty string as separator for string_to_array  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes:
> 2009/7/25 Tom Lane <tgl@sss.pgh.pa.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


pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: proposal: support empty string as separator for string_to_array
Next
From: Pavel Stehule
Date:
Subject: Re: mixed, named notation support