X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 7F691D1C4DF for ; Wed, 23 Jul 2003 19:15:51 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 52789-04 for ; Wed, 23 Jul 2003 16:15:09 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 633D4D1C4C1 for ; Wed, 23 Jul 2003 16:15:49 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h6NJFoQ3015643; Wed, 23 Jul 2003 15:15:50 -0400 (EDT) To: elein Cc: Robert Treat , pgsql-sql@postgresql.org Subject: Re: obtuse plpgsql function needs In-reply-to: <20030723111201.D20411@cookie> References: <1058913112.22259.271.camel@camel> <20030722163335.A18881@cookie> <1058965609.22259.292.camel@camel> <20030723111201.D20411@cookie> Comments: In-reply-to elein message dated "Wed, 23 Jul 2003 11:12:01 -0700" Date: Wed, 23 Jul 2003 15:15:50 -0400 Message-ID: <15642.1058987750@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/343 X-Sequence-Number: 14457 elein writes: > You can do it in C, of course. Yeah. Also you could do it easily in plperl or pltcl (composite-type arguments get passed as perl hashes or Tcl arrays respectively). plpgsql does not have any facility for run-time determination of field names, so you're pretty much out of luck in that particular language. regards, tom lane