patch: to_string, to_array functions
От
Pavel Stehule
Тема
patch: to_string, to_array functions
Дата
Msg-id
w2w162867791005051142y9c923802jc1d1a42f126338a9@mail.gmail.com
Список
Дерево обсуждения
patch: to_string, to_array functions Pavel Stehule <pavel.stehule@gmail.com>
Re: patch: to_string, to_array functions Brendan Jurd <direvus@gmail.com>
Re: patch: to_string, to_array functions Pavel Stehule <pavel.stehule@gmail.com>
Re: patch: to_string, to_array functions Brendan Jurd <direvus@gmail.com>
Re: patch: to_string, to_array functions Pavel Stehule <pavel.stehule@gmail.com>
Re: patch: to_string, to_array functions Brendan Jurd <direvus@gmail.com>
Re: patch: to_string, to_array functions Pavel Stehule <pavel.stehule@gmail.com>
Re: patch: to_string, to_array functions Itagaki Takahiro <itagaki.takahiro@gmail.com>
Re: patch: to_string, to_array functions Robert Haas <robertmhaas@gmail.com>
Re: patch: to_string, to_array functions Pavel Stehule <pavel.stehule@gmail.com>
Re: patch: to_string, to_array functions Robert Haas <robertmhaas@gmail.com>
Re: patch: to_string, to_array functions Pavel Stehule <pavel.stehule@gmail.com>
Re: patch: to_string, to_array functions Pavel Stehule <pavel.stehule@gmail.com>
Re: patch: to_string, to_array functions Robert Haas <robertmhaas@gmail.com>
Re: patch: to_string, to_array functions Pavel Stehule <pavel.stehule@gmail.com>
Re: patch: to_string, to_array functions Robert Haas <robertmhaas@gmail.com>
Re: patch: to_string, to_array functions Brendan Jurd <direvus@gmail.com>
Re: patch: to_string, to_array functions Robert Haas <robertmhaas@gmail.com>
Re: patch: to_string, to_array functions Pavel Stehule <pavel.stehule@gmail.com>
Re: patch: to_string, to_array functions Robert Haas <robertmhaas@gmail.com>
Re: patch: to_string, to_array functions Pavel Stehule <pavel.stehule@gmail.com>
Re: patch: to_string, to_array functions Robert Haas <robertmhaas@gmail.com>
Re: patch: to_string, to_array functions Pavel Stehule <pavel.stehule@gmail.com>
Re: patch: to_string, to_array functions Robert Haas <robertmhaas@gmail.com>
Re: patch: to_string, to_array functions Pavel Stehule <pavel.stehule@gmail.com>
Re: patch: to_string, to_array functions Merlin Moncure <mmoncure@gmail.com>
Re: patch: to_string, to_array functions David Fetter <david@fetter.org>
Re: patch: to_string, to_array functions Pavel Stehule <pavel.stehule@gmail.com>
Re: patch: to_string, to_array functions Dimitri Fontaine <dfontaine@hi-media.com>
Re: patch: to_string, to_array functions Pavel Stehule <pavel.stehule@gmail.com>
Re: patch: to_string, to_array functions Pavel Stehule <pavel.stehule@gmail.com>
Re: patch: to_string, to_array functions Michael Glaesemann <grzm@seespotcode.net>
Re: patch: to_string, to_array functions Pavel Stehule <pavel.stehule@gmail.com>
Re: patch: to_string, to_array functions Bruce Momjian <bruce@momjian.us>
Hello
attached patch contains to_string and to_array functions. These
functions are equivalent of array_to_string and string_to_array
function with maybe more correct NULL handling.
postgres=# select to_array('1,2,3,4,,6',',');
to_array
------------------
{1,2,3,4,NULL,6}
(1 row)
postgres=# select to_array('1,2,3,4,,6',',','***');
to_array
----------------
{1,2,3,4,"",6}
(1 row)
postgres=# select to_string(array[1,2,3,4,NULL,6],',');
to_string
------------
1,2,3,4,,6
(1 row)
postgres=# select to_string(array[1,2,3,4,NULL,6],',','***');
to_string
---------------
1,2,3,4,***,6
(1 row)
Regards
Pavel Stehule
В списке pgsql-hackers по дате отправления