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

From: "Damjan Pipan" <damjan(dot)pipan(at)siol(dot)net>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: plpgsql - accessing field in RECORD variable by text variables
Date: 2002-11-19 17:41:43
Message-ID: 00a901c28ff2$ecced230$6700010a@valhala
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I would like to try it, but I was unable to install tcl under cygwin.

I have installed ActiveTCL and tried to compile with with-tcl option
and got undefined reference for all Tcl functions. Then I have tried to set
path --with-libs= set to tcl/lib dir and also with tclConfig.sh and tkConfig.sh,
but nothing worked.

I have also tried to compile the sources from sourceforge (for tcl) but got back the
same error.

Can anybody help me setting up the right path for tcl libs.

Damjan

> "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

Browse pgsql-general by date

  From Date Subject
Next Message Medi Montaseri 2002-11-19 17:48:30 Re: help in starting up / shutting down postgres as another
Previous Message Kieran 2002-11-19 16:18:35 Re: Enterprise readiness - mirroring / incremental backup solutions?