pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Phil Endecott <spam_from_postgresql_sql@chezphil.org>
Cc: Riccardo G. Facchini <abief_ag_-postgresql@yahoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: plpgsql - Insert from a record variable?
Date: Mon, 21 Jun 2004 21:30:49 -0400
Message-ID: <8648.1087867849@sss.pgh.pa.us> (raw)
In-Reply-To: <4357626@chezphil.org>
References: <20040619060330.83941.qmail@web13901.mail.yahoo.com>
	<17840.1087670348@sss.pgh.pa.us>
	<4357626@chezphil.org>

"Phil Endecott" <spam_from_postgresql_sql@chezphil.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



view thread (8+ messages)  latest in thread

Message-ID: <8648.1087867849@sss.pgh.pa.us>
Permalink:  ../8648.1087867849@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/8648.1087867849@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, spam_from_postgresql_sql@chezphil.org, abief_ag_-postgresql@yahoo.com
  Subject: Re: plpgsql - Insert from a record variable?
  In-Reply-To: <8648.1087867849@sss.pgh.pa.us>

* 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