"David Witham" <davidw(at)unidial(dot)com(dot)au> writes:
> myrec record;
> ...
> select * into myrec from myfunc(...params...) as (col1 real,col2 integer);
> but I keep getting a parse error:
> WARNING: Error occurred while executing PL/pgSQL function myparentfunc
> WARNING: line 27 at select into variables
> ERROR: parser: parse error at or near "$1" at character 72
I doubt this has anything to do with the function per se. I'd check for
a conflict between the names you are using as plpgsql variables and the
names mentioned in this SELECT.
regards, tom lane