Re: Some queries starting to hang

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

 



On Mon, Jun 05, 2006 at 01:39:38PM -0700, Chris Beecroft wrote:
> Thanks Tom,
> 
> I knew you would come through again!
> 
> Query is now returning with results on our replicated database.  Will
> vacuum analyze production now.  So it seems to have done the trick.  Now
> the question is has our auto vacuum failed or was not set up properly...
> A question for my IT people.

You should almost certainly be running the autovacuum that's built in
now. If you enable vacuum_cost_delay you should be able to make it so
that vacuum's impact on production is minimal. The other thing you'll
want to do is cut all the vacuum threshold and scale settings in half
(the defaults are very conservative).
-- 
Jim C. Nasby, Sr. Engineering Consultant      jnasby@xxxxxxxxxxxxx
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461


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

  Powered by Linux