pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone.bigpanda.com>
To: pginfo <pginfo@t1.unisoftbg.com>
Cc: Antonis Antoniou <a.antoniou@albourne.com>
Cc: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>
Subject: Re: vacuum full problem
Date: Tue, 11 Nov 2003 07:09:37 -0800 (PST)
Message-ID: <20031111070303.K60760@megazone.bigpanda.com> (raw)
In-Reply-To: <3FB09C68.2003C6F9@t1.unisoftbg.com>
References: <3FAB2AFA.E32E7FD6@t1.unisoftbg.com>
	<3FAB78F3.8060406@albourne.com>
	<3FABBEAB.D15DBA8@t1.unisoftbg.com>
	<3FB08DF3.5080703@albourne.com>
	<20031111000039.L47755@megazone.bigpanda.com>
	<3FB09C68.2003C6F9@t1.unisoftbg.com>

On Tue, 11 Nov 2003, pginfo wrote:

> Hi,
> I can not be sure if it is not the case.
> But we are usin this system on a number of servers and it happen only by
> one.
> Can I with a pg_locks help detect the query that is running?

It won't directly tell you what statement is running (although my guess is
also that it's probably something like an idle in transaction state
backend), but it can tell you if that's the problem probably.

You'd see something like:
	...
    21488 |    17057 |             | 8613 | AccessShareLock | t
	...
    21488 |    17057 |             | 8626 | AccessExclusiveLock | f

Which is basically saying that the command in pid 8626 is waiting on the
lock that pid 8613 has.



view thread (15+ messages)  latest in thread

Message-ID: <20031111070303.K60760@megazone.bigpanda.com>
Permalink:  ../20031111070303.K60760@megazone.bigpanda.com/
Also on:    postgresql.org/message-id/20031111070303.K60760@megazone.bigpanda.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: sszabo@megazone.bigpanda.com, pginfo@t1.unisoftbg.com, a.antoniou@albourne.com
  Subject: Re: vacuum full problem
  In-Reply-To: <20031111070303.K60760@megazone.bigpanda.com>
  References: <3FAB2AFA.E32E7FD6@t1.unisoftbg.com> <3FAB78F3.8060406@albourne.com> <3FABBEAB.D15DBA8@t1.unisoftbg.com> <3FB08DF3.5080703@albourne.com> <20031111000039.L47755@megazone.bigpanda.com> <3FB09C68.2003C6F9@t1.unisoftbg.com> <20031111070303.K60760@megazone.bigpanda.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox