Re: PL/PGSQL rowtype return problem - Mailing list pgsql-general

From Tom Lane
Subject Re: PL/PGSQL rowtype return problem
Date
Msg-id 8324.1181664237@sss.pgh.pa.us
Whole thread Raw
In response to PL/PGSQL rowtype return problem  (rwickert@contextworld.com)
List pgsql-general
rwickert@contextworld.com writes:
> I have a problem when I create a function that returns a rowtype. I can't a=
> ccess the individual fields of that rowtype from another function if I put =
> the results in a row type variable.

I think this is just a scalar assignment:

> SELECT get_default_values() INTO defaults;

This might work better:

SELECT * INTO defaults FROM get_default_values();

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Date style handling changes between 7.4.12 and 8.2.4
Next
From: Tom Lane
Date:
Subject: Re: INSERT ... RETURNING in v8.2