Skip site navigation (1) Skip section navigation (2)

Re: Finding out on exactly what I am stuck

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: Péter Kovács <maxottovonstirlitz(at)gmail(dot)com>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Finding out on exactly what I am stuck
Date: 2009-04-10 13:42:43
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
Péter Kovács <maxottovonstirlitz(at)gmail(dot)com> wrote: 
> It appears nobody is waiting for a lock (all current locks are
> granted):
Then I would run the UPDATE on another connection with EXPLAIN in
front of it.  That would show you the plan it will use, which might
give a clue why it is running so long.
Also, a connection which is "idle in transaction" will prevent normal
maintenance and may lead to table bloat which can kill performance. 
It could be that your problem is there.  You might want to check how
big your database is (using du or something similar), and make sure
that the size seems reasonable.
I hope this helps.

In response to


pgsql-admin by date

Next:From: P KapatDate: 2009-04-10 19:01:49
Subject: Re: backing and restoring whole database server - how does this script look
Previous:From: Kevin BaileyDate: 2009-04-10 09:58:44
Subject: Further question RE dumping and reloading whole database server

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group