From: Sean Chittenden <sean@chittenden.org>
To: Brian Knox <laotse@aol.net>
Cc: George Weaver <georgew1@mts.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: "record" datatype - plpgsql
Date: Fri, 30 May 2003 10:12:38 -0700
Message-ID: <20030530171238.GL62688@perrin.int.nxad.com> (raw)
In-Reply-To: <9212.1054302602@sss.pgh.pa.us>
References: <Pine.LNX.4.53.0305280753040.30365@tao.office.aol.com>
<005001c32624$0f0f3980$0100007f@cleartag>
<Pine.LNX.4.53.0305300851380.13440@tao.office.aol.com>
<9212.1054302602@sss.pgh.pa.us>
> > What I was asking is if there's anyway to use the NEW record to
> > get a list of the columnnames in it without knowing them
> > beforehand.
>
> Not in plpgsql ... and if you did, you couldn't do anything useful
> with the names (like access the fields) anyway. I believe you can
> do it in pltcl though.
If you're shopping around for pl languages, pl/ruby fits the bill too.
Reflective language with dynamic execution. -sc
http://moulon.inra.fr/ruby/plruby.html
--
Sean Chittenden
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: sean@chittenden.org, laotse@aol.net, georgew1@mts.net
Subject: Re: "record" datatype - plpgsql
In-Reply-To: <20030530171238.GL62688@perrin.int.nxad.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox