Re: An "obvious" index not being used - Mailing list pgsql-performance

From Tom Lane
Subject Re: An "obvious" index not being used
Date
Msg-id 24818.1216529087@sss.pgh.pa.us
Whole thread Raw
In response to Re: An "obvious" index not being used  (Daniele Varrazzo <piro@develer.com>)
Responses Re: An "obvious" index not being used  (Daniele Varrazzo <piro@develer.com>)
List pgsql-performance
Daniele Varrazzo <piro@develer.com> writes:
> In my problem I had 2 tables: a small one (accounts), a large one (foo). The
> way the query is written doesn't allow the stats from the large table to be
> used at all, unless the records from the small table are fetched. This is
> independent from the stats accuracy.

> What the planner does is to assume an even distribution in the data in the
> joined fields.

Sir, you don't know what you're talking about.

            regards, tom lane

pgsql-performance by date:

Previous
From: Daniele Varrazzo
Date:
Subject: Re: An "obvious" index not being used
Next
From: Daniele Varrazzo
Date:
Subject: Re: An "obvious" index not being used