Re: [PERFORM] Two questions.. shared_buffers and long reader issue

2007-07-11 Thread Patric de Waha
Ok thanks. iostat confirmed it's an IO bottleneck. Will add some discs to the RAID unit. Used 4 Raptor discs in Raid 10 until now. best regards, patric Tom Lane wrote: Patric de Waha <[EMAIL PROTECTED]> writes: Postgres is running on a dedicated server P4 DualCore, 4 Gig Ram.

Re: [PERFORM] Two questions.. shared_buffers and long reader issue

2007-07-11 Thread Andrew Sullivan
On Wed, Jul 11, 2007 at 05:35:33PM +0200, Patric de Waha wrote: > Mainly updates on 1 tuple. Are you vacuuming that table enough? > And more or less complex SELECT statements. >I noticed that the overall performance of postgres is decreasing > when one or more long > readers are present

Re: [PERFORM] Two questions.. shared_buffers and long reader issue

2007-07-11 Thread Tom Lane
Patric de Waha <[EMAIL PROTECTED]> writes: >Postgres is running on a dedicated server P4 DualCore, 4 Gig Ram. When you don't even mention your disk hardware, that's a bad sign. In a database server the disk is usually more important than the CPU. >Why do long readers influence the rest o

Re: [PERFORM] Two questions.. shared_buffers and long reader issue

2007-07-11 Thread Bryan Murphy
We have a few tables that we need to pull relatively accurate aggregate counts from, and we found the performance of SELECT COUNT(*) to be unacceptable. We solved this by creating triggers on insert and delete to update counts in a secondary table which we join to when we need the count informati

[PERFORM] Two questions.. shared_buffers and long reader issue

2007-07-11 Thread Patric de Waha
Hi, I've two questions for which I not really found answers in the web. Intro: I've a Website with some traffic. 2 Million queries a day, during daylight. Postgres is running on a dedicated server P4 DualCore, 4 Gig Ram. Mainly updates on 1 tuple. And more or less complex SELECT stat