owner <ivan(at)psycho(dot)pl> writes:
> i've CREATE FUNCTION iv_get(int) RETURNS SETOF same_table AS ' select *
> from same_table; ' LANGUAGE SQL;
> and then
> medyk=# SELECT * FROM iv_get(0);
> ERROR: parser: parse error at or near "("
Works for me. I suspect you are trying to use 7.3 features with a
pre-7.3 Postgres installation.
regards, tom lane