Re: optimizer choosing the wrong index - Mailing list pgsql-general

From Tom Lane
Subject Re: optimizer choosing the wrong index
Date
Msg-id 24252.1278598290@sss.pgh.pa.us
Whole thread Raw
In response to Re: optimizer choosing the wrong index  (Martin Below <machtin.below@googlemail.com>)
Responses Re: optimizer choosing the wrong index  (Merlin Moncure <mmoncure@gmail.com>)
List pgsql-general
Martin Below <machtin.below@googlemail.com> writes:
> test=# select count(*) total, count(distinct client_id) ids,
> count(distinct expires_on) dates from ps;
>  total  |  ids   | dates
> --------+--------+--------
>  213645 | 123366 | 213549

That says the expires_on column is practically unique, which makes me
think the planner is indeed making the right choice.

            regards, tom lane

pgsql-general by date:

Previous
From: Martin Below
Date:
Subject: Re: optimizer choosing the wrong index
Next
From: "Igor Neyman"
Date:
Subject: Re: Problems with Vista and Windows 7