Richard Rosenberg <richrosenberg@earthlink.net> writes:
> I have the following setup which works great in version 8.3 but throws an
> error in 7.4:
I think you mangled your example to the point where it doesn't work in
8.3 either ... I get
ERROR: a column definition list is required for functions returning "record"
CONTEXT: SQL statement "select * from dd_test( $1 )"
PL/pgSQL function "test_trg" line 7 at SQL statement
regards, tom lane