Re: [PERFORM] Slow queries after vacuum analyze

2012-12-27 Thread Ghislain ROUVIGNAC
Hello Kevin, I solved the issue. I reproduced it immediatly after installing PostgreSQL 8.4.1. I thougth they were using PostgreSQL 8.4.8 but was never able to reproduce it with that version. So something was changed related to my problem, but i didn't see explicitly what in the change notes. Nev

Re: [PERFORM] Slow queries after vacuum analyze

2012-12-21 Thread Kevin Grittner
Ghislain ROUVIGNAC wrote: >> I would leave default_statistics_target alone unless you see a lot of >> estimates which are off by more than an order of magnitude. Even then, it >> is often better to set a higher value for a few individual columns than for >> everything. > > > We had an issue with

Re: [PERFORM] Slow queries after vacuum analyze

2012-12-18 Thread Kevin Grittner
Ghislain ROUVIGNAC wrote: > Memory : In use 4 Go, Free 15Go, cache 5 Go. If the active portion of your database is actually small enough that it fits in the OS cache, I recommend: seq_page_cost = 0.1 random_page_cost = 0.1 cpu_tuple_cost = 0.05 > I plan to increase various parameters as follow:

Re: [PERFORM] Slow queries after vacuum analyze

2012-12-13 Thread Kevin Grittner
Ghislain ROUVIGNAC wrote: > Threre is a vacuum analyze planned during the night. > The morning, 1 day out of 2, there are some extremely slow > queries. Those queries lasts more than 5 minutes (never waited > more and cancelled them) whereas when everything is OK they last > less than 300ms. > >