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
to_array.diff
Description: Binary data
-- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers