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.

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to [EMAIL PROTECTED] so that your
      message can get through to the mailing list cleanly

Reply via email to