Re: Record Types Structure in PL/pgSQL - Mailing list pgsql-general

From Tom Lane
Subject Re: Record Types Structure in PL/pgSQL
Date
Msg-id 22947.1181311865@sss.pgh.pa.us
Whole thread Raw
In response to Record Types Structure in PL/pgSQL  ("Diego Sanchez R." <dmsanchezr@gmail.com>)
Responses Re: Record Types Structure in PL/pgSQL  ("Merlin Moncure" <mmoncure@gmail.com>)
List pgsql-general
"Diego Sanchez R." <dmsanchezr@gmail.com> writes:
> Is there any way of determining the actual structure of a record variable?

Not in plpgsql; even if the info were exposed, you couldn't do anything
very useful because that language is strongly typed.

In some of the other PLs you could do it --- eg, in plperl the field
names are keys of a hash.  Or as a last resort there's always C.

            regards, tom lane

pgsql-general by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: setting login database
Next
From: Andrew Edson
Date:
Subject: Disappearing table - suggestions on possible causes appreciated.