Hi
I propose new function string_to_table. This function is significantly faster (and simpler) variant of regexp_split_to_array function. There was same process years ago when we implemented string_agg as faster variant of array_to_string(array_agg()). string_to_table is faster variant (and little bit more intuitive alternative of unnest(string_to_array()).
string_to_table is about 15% faster than unnest(string_to_array()) and about 40% faster than regexp_split_to_array.
Initial patch is attached
Notes, comments?
Regards
Pavel