Re: plpgsql - Insert from a record variable?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Phil Endecott" <spam_from_postgresql_sql(at)chezphil(dot)org>
Cc: "Riccardo G(dot) Facchini" <abief_ag_-postgresql(at)yahoo(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: plpgsql - Insert from a record variable?
Date: 2004-06-22 01:30:49
Message-ID: 8648.1087867849@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Phil Endecott" <spam_from_postgresql_sql(at)chezphil(dot)org> writes:
> I think what I really need is an introspection mechanism
> so that I can loop over each element of the record and construct the
> insert as a string. Maybe this is possible using a different
> server-side language?

pltcl can probably handle this; I'm less sure about plperl or plpython.
(No reflection on the languages, but pltcl has the most complete
Postgres interface.)

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Gary Stainburn 2004-06-22 09:34:10 Re: subselect prob in view
Previous Message basic 2004-06-22 00:57:19 Re: plpgsql - Insert from a record variable?