>
> What I was wondering was if it was possible for me to return different user
> defined types. To try to illustrate what I mean, here's some example code
> which I think is allowed:
>
yes.
just create your functions as:
CREATE FUNCTION test() RETURNS record as $$
$$ language 'your-language';
then execute the function as
select * from test() as (field1 type1, field2 type2...);
--
regards,
Jaime Casanova
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots.
So far, the universe is winning."
Richard Cook