The question is probably a bit misleading.
So I have this table Query with the column requests that contains queries in a form of a strings. Not all queries are in the same string. I mean I row of table = one string of query.
The question is how can I loop through this request column so the function would execute each and every reuqest in it?
I do know that there're such things as FOR IN LOOP and RETURN QUERY EXECUTE
but the problem is since every single query is SELECT one , the result always will be the table with the different column names and different amount of columns, so I can't set RETURNS TABLE() properly.
Are there any other options to loop through this column of queries to execute them one by one?
Thank you beforehand!