OS: Windows 7/64.
The type of result of the function is shown as "SETOF text" instead "TABLE(col1 text)", column name "col1" is lost.
Despite this, the name of the column "col1" is present in the results:
SELECT * FROM myfunc();
col1 !
text !
----------+-
aaa |
Сommand-line utility "psql" returns (\df+) correct value of function type.