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 2F4BFD1C91A for ; Thu, 24 Jul 2003 05:07:21 +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 00268-09 for ; Thu, 24 Jul 2003 02:06:37 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 2F059D1C90E for ; Thu, 24 Jul 2003 02:07:19 -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 h6O57IQ3015511; Thu, 24 Jul 2003 01:07:19 -0400 (EDT) To: elein Cc: Robert Treat , pgsql-sql@postgresql.org Subject: Re: obtuse plpgsql function needs In-reply-to: <20030723122723.C26401@cookie> References: <1058913112.22259.271.camel@camel> <20030722163335.A18881@cookie> <1058965609.22259.292.camel@camel> <20030723111201.D20411@cookie> <15642.1058987750@sss.pgh.pa.us> <20030723122723.C26401@cookie> Comments: In-reply-to elein message dated "Wed, 23 Jul 2003 12:27:23 -0700" Date: Thu, 24 Jul 2003 01:07:18 -0400 Message-ID: <15510.1059023238@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/354 X-Sequence-Number: 14468 elein writes: > So, other than C, plperl or pltcl is the way to go. > As long as they can input generic composite types > (I wasn't sure of that, but I should have known), Come to think of it, that is a problem: we don't have any way to declare a function as taking "any tuple type". So even though pltcl or plperl functions could be written to work with such input, we can't declare them. This is a problem even for C functions. You could declare a C function as taking "any", but then you can't even check that what you got was a tuple ... Something to work on for 7.5, I suppose. regards, tom lane