pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Christoph Haller <ch@rodos.fzk.de>
To: pgsql-sql@postgresql.org
Subject: Re: How to make a IN without a table... ?
Date: Thu, 12 Jun 2003 07:09:29 -0500
Message-ID: <20030612120929.GC1285@wolff.to> (raw)
In-Reply-To: <20030612115027.GB680@apartia.fr>
References: <3EE8610A.EBE8B77@rodos.fzk.de>
	<20030612115027.GB680@apartia.fr>

On Thu, Jun 12, 2003 at 13:50:27 +0200,
  David Pradier <dpradier@apartia.fr> 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.



view thread (14+ messages)  latest in thread

Message-ID: <20030612120929.GC1285@wolff.to>
Permalink:  ../20030612120929.GC1285@wolff.to/
Also on:    postgresql.org/message-id/20030612120929.GC1285@wolff.to

 · 

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: bruno@wolff.to, ch@rodos.fzk.de
  Subject: Re: How to make a IN without a table... ?
  In-Reply-To: <20030612120929.GC1285@wolff.to>

* 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