X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id ACF4230E5B9 for ; Thu, 12 Jun 2003 12:06:53 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 58190-05 for ; Thu, 12 Jun 2003 09:06:43 -0300 (ADT) Received: from wolff.to (wolff.to [66.93.249.74]) by svr1.postgresql.org (Postfix) with SMTP id 7803530E869 for ; Thu, 12 Jun 2003 09:06:42 -0300 (ADT) Received: (qmail 1441 invoked by uid 500); 12 Jun 2003 12:09:29 -0000 Date: Thu, 12 Jun 2003 07:09:29 -0500 From: Bruno Wolff III To: Christoph Haller , pgsql-sql@postgresql.org Subject: Re: How to make a IN without a table... ? Message-ID: <20030612120929.GC1285@wolff.to> Mail-Followup-To: Christoph Haller , pgsql-sql@postgresql.org References: <3EE8610A.EBE8B77@rodos.fzk.de> <20030612115027.GB680@apartia.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030612115027.GB680@apartia.fr> User-Agent: Mutt/1.5.4i X-Archive-Number: 200306/103 X-Sequence-Number: 13861 On Thu, Jun 12, 2003 at 13:50:27 +0200, David Pradier wrote: > > I guess i wasn't clear enough. > "my_function" here is a function which calculate some results about some > datas from the database. > Example : a function which would calculate the sum of the money (which > would be stored in the database by movement, ie amount + date + cause + > account) spent by user my_var1 during period my_var2. > > So no, perl can't do this. I think the idea was that perl could generate multiple query statements for you. This would be slower than doing as one query, but if the database is local there wouldn't be much difference.