Re: "record" datatype - plpgsql - Mailing list pgsql-sql

From Sean Chittenden
Subject Re: "record" datatype - plpgsql
Date
Msg-id 20030530171238.GL62688@perrin.int.nxad.com
Whole thread Raw
In response to Re: "record" datatype - plpgsql  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
> > 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


pgsql-sql by date:

Previous
From: Franco Bruno Borghesi
Date:
Subject: Re: SQL Help
Next
From: Tom Lane
Date:
Subject: Re: CASE returning multiple values (was SQL Help)