| From: | Enrico Weigelt <weigelt(at)metux(dot)de> |
|---|---|
| To: | pgsql-performance(at)postgresql(dot)org |
| Subject: | Re: Why the planner is not using the INDEX . |
| Date: | 2005-07-08 15:36:38 |
| Message-ID: | 20050708153638.GD6368@nibiru.borg.metux.de |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-performance |
* David Gagnon <dgagnon(at)siunik(dot)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(at)metux(dot)de
---------------------------------------------------------------------
Realtime Forex/Stock Exchange trading powered by postgresSQL :))
http://www.fxignal.net/
---------------------------------------------------------------------
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Mark Lewis | 2005-07-08 16:08:10 | Re: Need help to decide Mysql vs Postgres |
| Previous Message | Enrico Weigelt | 2005-07-08 14:43:36 | Re: Need help to decide Mysql vs Postgres |