Re: [GENERAL] Slow query with 100% cpu

2008-02-27 Thread Clodoaldo
I just ANALYZEd the database and times are back to normal. Sorry for the noise. Regards, Clodoaldo Pinto Neto 2008/2/27, Clodoaldo <[EMAIL PROTECTED]>: > Postgresql 8.2.6, Fedora 8, 2 GB memory. > > A query that used to perform in a few seconds is now taking 64 seconds > with 100% cpu: > > fah

[GENERAL] Slow query with 100% cpu

2008-02-27 Thread Clodoaldo
Postgresql 8.2.6, Fedora 8, 2 GB memory. A query that used to perform in a few seconds is now taking 64 seconds with 100% cpu: fahstats=> explain analyze fahstats-> select fahstats-> donor::smallInt as new_members, fahstats-> active_members, fahstats-> d.data::date as day, fahstats-> isod