From: Enrico Weigelt <weigelt@metux.de>
To: pgsql-performance@postgresql.org
Subject: Re: Why the planner is not using the INDEX .
Date: Fri, 8 Jul 2005 17:36:38 +0200
Message-ID: <20050708153638.GD6368@nibiru.borg.metux.de> (raw)
In-Reply-To: <42CAC937.4080702@siunik.com>
References: <20050630222451.GA17628@calvin.surfutopia.net>
<42C473BA.9090305@commandprompt.com>
<20050630235821.GA2163@calvin.surfutopia.net>
<42C994BD.3000909@siunik.com>
<23492.1120579796@sss.pgh.pa.us>
<42CAC937.4080702@siunik.com>
* David Gagnon <dgagnon@siunik.com> wrote:
> FOR inventoryTransaction IN
> SELECT DISTINCT IRNUM, IRAENUM, IRSTATUT, IRSENS, IRSOURCE,
> IRDATE, IRQTE
> FROM IR
> WHERE IRNUM = ANY (requestIds) and IRYPNUM = companyId
> LOOP
hmm. you probably could create the query dynamically and
then execute it.
BTW: why isn't IN not usable with arrays ?
cu
--
---------------------------------------------------------------------
Enrico Weigelt == metux IT service
phone: +49 36207 519931 www: http://www.metux.de/
fax: +49 36207 519932 email: contact@metux.de
---------------------------------------------------------------------
Realtime Forex/Stock Exchange trading powered by postgresSQL :))
http://www.fxignal.net/
---------------------------------------------------------------------
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-performance@postgresql.org
Cc: weigelt@metux.de
Subject: Re: Why the planner is not using the INDEX .
In-Reply-To: <20050708153638.GD6368@nibiru.borg.metux.de>
* 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