What is going wrong here?
An example of what I'm trying to do.
vw_teams is a view but same problem when trying it on a single table
CREATE FUNCTION test() RETURNS SETOF vw_teams AS 'select * from vw_teams;'
LANGUAGE 'sql';
SELECT test();
results in
test
-----------
137789256
137789256
(2 rows)
and this is what I expect
team | datum
----------+------------
groenwit | 2002-07-09
ordenbos | 2002-09-14
(2 rows)
????
kind regard
Jeroen Olthof