Re: Query performance PLEASE HELP

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dmitry Tkach <dmitry(at)openratings(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Query performance PLEASE HELP
Date: 2003-01-31 20:37:26
Message-ID: 24484.1044045446@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dmitry Tkach <dmitry(at)openratings(dot)com> writes:
>> tradestyle.duns is not really unique by itself, is it?

> No. The (duns,type) combination is unique (type is 0 through 5).

Well, if there are at most six of any duns value, then it's close enough
to unique for planning purposes. So that's not the problem.

> - it DOES choose the name index sometimes (for some of the values for
> the name in the criteria), but it just doesn't seem to make any
> difference. Here is an example:

The plan's not very intelligible when you don't show us the query ...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-01-31 20:43:49 Re: empty contrib diurectories?
Previous Message Jean-Luc Lachance 2003-01-31 20:17:55 Re: limited field duplicates