select parse_ident('abc,efi&xyz');
Will stay there for ever, not returning. But a similar command will finish.
select regexp_split_to_array('abc,efi&xyz', '[,&]');
regexp_split_to_array
-----------------------
{abc,efi,xyz}
(1 row)
Not sure what's wrong with my database. I am running a vacuum full analyze at the moment. Not sure that cause the hang.
parse_ident(qualified_identifier)
is used to split qualified_identifier into an array of identifiers, removing any quoting of individual identifiers.vacuum
.