Re: PL/PGSQL rowtype return problem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: rwickert(at)contextworld(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PL/PGSQL rowtype return problem
Date: 2007-06-12 16:03:57
Message-ID: 8324.1181664237@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

rwickert(at)contextworld(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-06-12 16:20:44 Re: INSERT ... RETURNING in v8.2
Previous Message Tom Lane 2007-06-12 15:51:32 Re: Date style handling changes between 7.4.12 and 8.2.4