Re: what could cause inserts getting queued up and db locking??

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Brian Maguire <bmaguire(at)vantage(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: what could cause inserts getting queued up and db locking??
Date: 2004-10-26 21:59:27
Message-ID: 13887.1098827967@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Brian Maguire <bmaguire(at)vantage(dot)com> wrote:
>> We though there might be locking, but noticed that there were not any
>> queries in wait mode indicating that no statements were blocked by
>> another statement's lock.

In that case it's not a locking problem, but just a resource-saturation
problem. I'm wondering if you are maxing out your disk drives'
throughput.

Are the slowdowns correlated with checkpoints? (Watch to see if there
is a postmaster child process spawned for checkpointing when it
happens.) Fooling with checkpoint intervals might help some, though
I suspect the only real answer will be 8.0's background-writer feature.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dawid Kuroczko 2004-10-26 22:10:27 Re: primary key and existing unique fields
Previous Message Scott Frankel 2004-10-26 21:33:18 Re: basic debugging question