Re: index problem (uses one index but not the other)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Maurice Balick <balm(at)smiley(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: index problem (uses one index but not the other)
Date: 2002-04-16 05:49:18
Message-ID: 9810.1018936158@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Maurice Balick <balm(at)smiley(dot)com> writes:
> The weird thing is that this used to work (i.e. trans_oid_idx was used)
> when there was about 200000 records (about 1/3 of now). Also, there is
> about
> 9000 distinct values of account_id, but about 300000 values of order_id.

What's the most common value in each case?

> (I am running Postgresql 7.1.3 on Redhat 7.1)

7.2 is less likely to be fooled when the most common value is much more
common than the rest ...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mark Price 2002-04-16 06:14:26 j2sdk1.4.0 jdbc compile errors
Previous Message Maurice Balick 2002-04-16 05:35:18 index problem (uses one index but not the other)