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

From Pavel Stehule
Subject proposal: support empty string as separator for string_to_array
Date
Msg-id 162867790907242040r6d8e1756s40f65cdc491f135e@mail.gmail.com
Whole thread Raw
Responses Re: proposal: support empty string as separator for string_to_array
Re: proposal: support empty string as separator for string_to_array
List pgsql-hackers
Hello

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.
This behave is inversion of array_to_string function behave:

postgres=# select array_to_string(array['a','b','c'],'');array_to_string
-----------------abc
(1 row)

postgres=# select string_to_array('abc','');string_to_array
----------------- {a,b,c}
(1 row)

Notes, ideas???

Regards
Pavel Stehule


pgsql-hackers by date:

Previous
From: James Pye
Date:
Subject: Re: WIP: plpython3
Next
From: Brendan Jurd
Date:
Subject: Re: WIP: to_char, support for EEEE format