Re: [PERFORM] Optimizer seems to be way off, why?

2005-07-21 Thread Greg Stark
John A Meinel [EMAIL PROTECTED] writes: Now if you created the index on b(r,c), then it would have a much better idea of how selective that would be. At the very least, it could index on (r,c) rather than indexing on (r) and filtering by (c). There has been some discussion of adding

Re: [PERFORM] Optimizer seems to be way off, why?

2005-07-20 Thread Richard Huxton
Dirk Lutzebäck wrote: Hi, I do not under stand the following explain output (pgsql 8.0.3): explain analyze select b.e from b, d where b.r=516081780 and b.c=513652057 and b.e=d.e; QUERY PLAN

Re: [PERFORM] Optimizer seems to be way off, why?

2005-07-20 Thread Dirk Lutzebäck
Richard Huxton wrote: Dirk Lutzebäck wrote: Hi, I do not under stand the following explain output (pgsql 8.0.3): explain analyze select b.e from b, d where b.r=516081780 and b.c=513652057 and b.e=d.e; QUERY PLAN

Re: [PERFORM] Optimizer seems to be way off, why?

2005-07-20 Thread John A Meinel
Dirk Lutzebäck wrote: Richard Huxton wrote: Dirk Lutzebäck wrote: Hi, I do not under stand the following explain output (pgsql 8.0.3): explain analyze select b.e from b, d where b.r=516081780 and b.c=513652057 and b.e=d.e; QUERY