Is there a way how you can cast the following result to array?
select pg_tables from pg_tables
This will return one column only, however the da
string_to_array might help:
SELECT string_to_array(pg_tables::text,','::text) FROM pg_tables;