Search Postgresql Archives

Re: INDEX and JOINs

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

 



Il Friday 26 October 2007 15:18:04 Tom Lane ha scritto:
> Reg Me Please <regmeplease@xxxxxxxxx> writes:
> >>> (cost=3.95..382140.91 rows=274709 width=91) (actual
> >>> time=1.929..57713.305 rows=92 loops=1)
> >>> Hash Cond: (t_dati.camp_id = t_campi.camp_id)
>
> I think the reason it doesn't want to use an indexed join is the large
> estimate of the number of join result rows.  You need to try to get that
> number down to something nearer the reality.  Increasing the statistics
> target for the larger table might help.
>
> 			regards, tom lane

How can I "Increasing the statistics target for the larger table"?
I'ìm sorry for asking, but I'm not that deep into RDBMS.

Thanks.


---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux