Following is a sample of what am trying to achieve (never mind the select query because it just to show my actual problem)
for example,
select col1 from(
select 'tab09' as col1
union
select 'tab09_01'
union
select 'tab09_02'
union
select 'tab09_03'
union
select 'tab09_04'
) t order by col1
will return
col1
----------
tab09
tab09_01
tab09_02
tab09_03
tab09_04
So, Which PostgreSQL
function will helps to get the result like below
col1 col2
----------+----------
tab09 tab10
tab09_01 tab10_01
tab09_02 tab10_02
tab09_03 tab10_03
tab09_04 tab10_04
select
andunion
things to create testdata.values ('tab09'), ('tab09_01'), ('tab09_02')
will work just fine and is a lot less typing