On Jan 16, 2008 4:42 AM, Adrian Moisey <adrian@xxxxxxxxxxxxxxxxxxxx> wrote: > Hi > > I've noticed a strange pattern in our logs. > > We only log anything that takes longer then 5 seconds. > > If I tail the logs, I see a steady stream of functions that took longer > then 5 seconds. But every now and then I see nothing for 3 minutes and > after that a whole bunch (about 20 - 30) queries all finishing at the > same second. > > During this 3 minutes of nothing being logged, the db is still active > and I can access our website > > Looks to me like "something" is "locking" and causing requests to be > delayed. Once this "lock" unlocks, everything goes through. Hmmm. Are these queries actually all finishing at the same time or just showing up in the logs at the same time. Just thinking there might be some kind of issue going on with logging. Are you using syslog or postgresql stderr logging? ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster