| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | mdklatt(at)ou(dot)edu (Michael Klatt) |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Perplexing Query Performance |
| Date: | 2002-04-16 14:22:02 |
| Message-ID: | 15524.1018966922@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
mdklatt(at)ou(dot)edu (Michael Klatt) writes:
> select *
> from daily_rainfall as p, sites as s
> where p.site = s.ident and s.latitude >= -90 and s.latitude <= 90 and
> s.longitude >= -180 and terrain in ('A', 'I', 'L');
> Almost any combination of 'A', 'I', and/or 'L' consistently executes
> in the same time, but if it's ONLY 'A' PostgreSQL seems to go off into
> Never Never Land. There is no problem if 'I' or 'L' is used alone,
> just 'A'.
Sounds to me like it's switching from a good query plan to a bad one...
but since you haven't shown us EXPLAIN output nor described the
available indexes, it's hard to say much.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2002-04-16 14:24:44 | Re: Testers needed ... |
| Previous Message | Maurice Balick | 2002-04-16 14:02:42 | Re: index problem (uses one index but not the other) |