Re: plpgsql - accessing field in RECORD variable by text variables

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Damjan Pipan" <damjan(dot)pipan(at)siol(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: plpgsql - accessing field in RECORD variable by text variables
Date: 2002-11-19 15:47:06
Message-ID: 21171.1037720826@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Damjan Pipan" <damjan(dot)pipan(at)siol(dot)net> writes:
> I would like to access RECORD type variables fields by assigning field (attribute) name
> to some text variable and then access the field in RECORD which has the same name.

> Is this possible in plpgsql?

I don't think so, but you could probably do it in pltcl, since Tcl is
such a weakly typed language ...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Kieran 2002-11-19 16:18:35 Re: Enterprise readiness - mirroring / incremental backup solutions?
Previous Message Damjan Pipan 2002-11-19 15:02:07 plpgsql - accessing field in RECORD variable by text variables