Re: Query performance PLEASE HELP - Mailing list pgsql-general

From Tom Lane
Subject Re: Query performance PLEASE HELP
Date
Msg-id 24484.1044045446@sss.pgh.pa.us
Whole thread Raw
In response to Re: Query performance PLEASE HELP  (Dmitry Tkach <dmitry@openratings.com>)
List pgsql-general
Dmitry Tkach <dmitry@openratings.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

pgsql-general by date:

Previous
From: Dmitry Tkach
Date:
Subject: Re: Query performance PLEASE HELP
Next
From: Dmitry Tkach
Date:
Subject: Re: Query performance PLEASE HELP