Re: An "obvious" index not being used

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Daniele Varrazzo <piro@xxxxxxxxxxx> 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


[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux