Re: Optimizer seems to be way off, why? - Mailing list pgsql-performance

From Greg Stark
Subject Re: Optimizer seems to be way off, why?
Date
Msg-id 87vf34cdu6.fsf@stark.xeocode.com
Whole thread Raw
In response to Re: Optimizer seems to be way off, why?  (John A Meinel <john@arbash-meinel.com>)
List pgsql-performance
John A Meinel <john@arbash-meinel.com> 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 functionality like this but afaik no
version of Postgres actually does this yet.

Adding the index may still help though.



--
greg

pgsql-performance by date:

Previous
From: Jeffrey Tenny
Date:
Subject: What is best way to stream terabytes of data into postgresql?
Next
From: "Frank Wosczyna"
Date:
Subject: Re: What is best way to stream terabytes of data into