Re: Record Types Structure in PL/pgSQL

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Diego Sanchez R(dot)" <dmsanchezr(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Record Types Structure in PL/pgSQL
Date: 2007-06-08 14:11:05
Message-ID: 22947.1181311865@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Diego Sanchez R." <dmsanchezr(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Campbell, Lance 2007-06-08 14:15:14 Re: subtract a day from the NOW function
Previous Message Michael Fuhr 2007-06-08 14:10:38 Re: setting login database