Re: [PERFORM] VERY slow queries at random

2007-06-08 Thread Kristo Kaiv
On 07.06.2007, at 22:42, Greg Smith wrote: On Thu, 7 Jun 2007, Gunther Mayer wrote: wal checkpoint config is on pg defaults everywhere, all relevant config options are commented out. I'm no expert in wal stuff but I don't see how that could cause the problem? Checkpoints are very resourc

Re: [PERFORM] VERY slow queries at random

2007-06-07 Thread Kristo Kaiv
could be that the checkpoints are done too seldom. what is your wal checkpoint config? Kristo On 07.06.2007, at 0:27, Scott Marlowe wrote: Gunther Mayer wrote: Hi there, We run a small ISP with a FreeBSD/freeradius/postgresql 8.2.4 backend and 200+ users. Authentication happens via UAM/hotspo

Re: [PERFORM] Performance problem on 8.2.4, but not 8.2.3

2007-05-26 Thread Kristo Kaiv
these bogus rowcount estimates are a bit strange. if you have 800K rows and select 100K of them the rowcount estimate should most likely come from the histogram for the column. can you check what the histograms are for referrer path tables refferrer_domain where id <= referrer_domain 'media

Re: [PERFORM] Performance problem on 8.2.4, but not 8.2.3

2007-05-25 Thread Kristo Kaiv
Lo! referrer_paths seems to have totally wrong stats. try full analyze on it. how many records in total do you have in referrer_paths on 8.2.4 server? might be just a problem of usage pattern change from old system to new (1 row vs. 121399 rows) ? does not seem to be just a plan problem as t

Re: My quick and dirty "solution" (Re: [PERFORM] Performance Problem with Vacuum of bytea table (PG 8.0.13))

2007-05-25 Thread Kristo Kaiv
you should first cluster the table on primary key. The table is probably already bloated from the 3 hr delay it had before. First CLUSTER "primary key index name" ON group_fin_account_tst; Then vacuum it every 3 minutes. NB! clustering takes an access exclusive lock on table Kristo On 25.05.2007