X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3BB98D1B297 for ; Mon, 21 Jun 2004 22:30:54 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 26710-10 for ; Tue, 22 Jun 2004 01:30:50 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 31317D1B269 for ; Mon, 21 Jun 2004 22:30:46 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i5M1UnQv008649; Mon, 21 Jun 2004 21:30:49 -0400 (EDT) To: "Phil Endecott" Cc: "Riccardo G. Facchini" , pgsql-sql@postgresql.org Subject: Re: plpgsql - Insert from a record variable? In-reply-to: <4357626@chezphil.org> References: <20040619060330.83941.qmail@web13901.mail.yahoo.com> <17840.1087670348@sss.pgh.pa.us> <4357626@chezphil.org> Comments: In-reply-to "Phil Endecott" message dated "Mon, 21 Jun 2004 13:23:33 -0400" Date: Mon, 21 Jun 2004 21:30:49 -0400 Message-ID: <8648.1087867849@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/201 X-Sequence-Number: 18146 "Phil Endecott" 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