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 12754.1248543329@sss.pgh.pa.us
Whole thread Raw
In response to proposal: support empty string as separator for string_to_array  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: proposal: support empty string as separator for string_to_array
List pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes:
> I have one idea, that should simplify string to char array
> transformation. The base is idea: between every char is empty string,
> so empty string is regular separator for string_to_array function.

There already is a definition for what string_to_array does with an
empty field separator, and that is not it.  So this change would possibly
break existing applications.  It does not seem either intuitively
correct or useful enough to justify that --- particularly seeing that
there's already another way to get the effect.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Michael Paesold
Date:
Subject: Re: Shouldn't psql -1 imply ON_ERROR_STOP?
Next
From: Tom Lane
Date:
Subject: Re: [COMMITTERS] pgsql: Reserve the shared memory region during backend startup on