Re: Table locks - Mailing list pgsql-general

From Bruce Momjian
Subject Re: Table locks
Date
Msg-id 200010091743.NAA11909@candle.pha.pa.us
Whole thread Raw
In response to Re: Table locks  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Table locks  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
I want to write an admin utility that will view backend SQL queries, and
be able to view locks and statistics using gdb on the running backend.

> "Dale Anderson" <danderso@crystalsugar.com> writes:
> >     Is there any way to view the locks being held on a table??
>
> There is not any good way --- lock.c has a routine called DumpAllLocks,
> but it's not even compiled by default, let alone connected up to any
> reasonable calling method.  I've been thinking for awhile that we
> desperately need some simple way of dumping out the state of the lock
> manager...
>
>             regards, tom lane
>


--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-general by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Fw: Referencial integrity when there are timestamp primary keys
Next
From: Bruce Momjian
Date:
Subject: Re: Access to PGSQL