proposal: support empty string as separator for string_to_array

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема proposal: support empty string as separator for string_to_array
Дата
Msg-id 162867790907242040r6d8e1756s40f65cdc491f135e@mail.gmail.com
обсуждение исходный текст
Ответы Re: proposal: support empty string as separator for string_to_array  (Merlin Moncure <mmoncure@gmail.com>)
Re: proposal: support empty string as separator for string_to_array  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: James Pye
Дата:
Сообщение: Re: WIP: plpython3
Следующее
От: Brendan Jurd
Дата:
Сообщение: Re: WIP: to_char, support for EEEE format