Re: Why the planner is not using the INDEX . - Mailing list pgsql-performance

From Enrico Weigelt
Subject Re: Why the planner is not using the INDEX .
Date
Msg-id 20050708153638.GD6368@nibiru.borg.metux.de
Whole thread Raw
In response to Re: Why the planner is not using the INDEX .  (David Gagnon <dgagnon@siunik.com>)
List pgsql-performance
* 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/
---------------------------------------------------------------------

pgsql-performance by date:

Previous
From: Ian Westmacott
Date:
Subject: cost-based vacuum
Next
From: Josh Berkus
Date:
Subject: Re: Mount database on RAM disk?