is any reason why we cannot cast from record (row) to typed row? - Mailing list pgsql-hackers

From Pavel Stehule
Subject is any reason why we cannot cast from record (row) to typed row?
Date
Msg-id 162867791001202328i746a0fb0u44f76944d94b97b4@mail.gmail.com
Whole thread Raw
List pgsql-hackers
Hello

I looked on question on
http://stackoverflow.com/questions/2104811/execute-using-statement-in-pl-pgsql-doesnt-work-with-record-type

I was surprised so isn't possible cast from record to target type - is
there reason for this?

DECLARE r RECORD;
BEGIN EXECUTE 'SELECT * FROM xx' INTO r;
 r::xx isn't possible r::text::xx is possible

Regards
Pavel Stehule


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: HS/SR and smart shutdown
Next
From: Takahiro Itagaki
Date:
Subject: Re: Largeobject Access Controls (r2460)