"Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com> writes:
> On 26/01/2008, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> Although this won't work at the SQL level in 8.1, I think you might be
>> able to accomplish the equivalent within plpgsql by assigning the
>> rowtype value to a text variable.
> you lost names :(.
And datatype info too; but AFAICT that's exactly what the OP wants.
regards, tom lane