Re: Ok, why isn't it using *this* index?

From: Paul Tomblin <ptomblin(at)xcski(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Ok, why isn't it using *this* index?
Date: 2001-04-02 00:04:26
Message-ID: 20010401200426.B9289@allhats.xcski.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Quoting Tom Lane (tgl(at)sss(dot)pgh(dot)pa(dot)us):
> Paul Tomblin <ptomblin(at)xcski(dot)com> writes:
> > Ok, so if I understand you correctly, the fact that about 90% of the
> > records have country='USA' and about 9% of the records have
> > country='CANADA' means that it's never going to use the index because it
> > on average, a query is going to be for USA, and a sequential scan is going
> > to be better.
>
> effectively with data distributions like this one. But in any case,
> most of the respondents in this thread have been assuming that you
> were running a reasonably current Postgres. Try upgrading ...

Does anybody know if the RPM that comes with RedHat 7.0 will work with
RedHat 6.2? I've just upgraded my workstation machine to RedHat 7.0, and
I want to wait a bit before upgrading my server as well. (If only because
lpr suddenly stopped working with the last "update" from RedHat.)

--
Paul Tomblin <ptomblin(at)xcski(dot)com>, not speaking for anybody
"American 999, Heathrow Approach. Descend and maintain 4,000 feet, QNH 1011."
"Uhhh Heathrow Approach, could you give us that in inches?"
"American 999, descend and maintain 48,000 inches, QNH 1011."

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Doug McNaught 2001-04-02 00:18:45 Re: Ok, why isn't it using *this* index?
Previous Message Tom Lane 2001-04-01 23:02:45 Re: Can I get the default value for an attribute (field) ?