Re: What can cause quick queries to run unusually slow?

From: Brian Ghidinelli <brian(at)pukkasoft(dot)com>
To: SF Postgres <sfpug(at)postgresql(dot)org>
Subject: Re: What can cause quick queries to run unusually slow?
Date: 2013-03-15 04:22:25
Message-ID: 5142A201.4000701@pukkasoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: sfpug


On 3/14/2013 9:46 AM, Igor Polishchuk wrote:
> When you r delete was running slowly, did you check id th
> epg_stat_activity if it was waiting for something?
> It might just wait for a lock to be granted.

Thanks for the replies.

Unfortunately I wasn't around when it ran - I only noticed it in our
pgfouine report this morning. It is the PK for the table to Elein's
question. I don't know why that row or table would be locked or have
long running processes on them as it's a transactional table.

I see log_lock_waits and deadlock_timeout but would those be the right
way to capture when locks unexpectedly run a long time like this?

Brian

In response to

Browse sfpug by date

  From Date Subject
Next Message Sam Talebbeik 2013-03-29 23:20:46 Embedding postgresql in an application
Previous Message Josh Berkus 2013-03-14 20:25:34 Re: What can cause quick queries to run unusually slow?