Re: lock table problem - Mailing list pgsql-general

From Tom Lane
Subject Re: lock table problem
Date
Msg-id 18216.1156479877@sss.pgh.pa.us
Whole thread Raw
In response to lock table problem  (marcelo Cortez <jmdc_marcelo@yahoo.com.ar>)
List pgsql-general
marcelo Cortez <jmdc_marcelo@yahoo.com.ar> writes:
>  the pg_statistics show too many lock table ( fron my
> app.) and all of them  is in waiting state.
>  the only way to go out from this situation is restart
> the cluster.

Surely a few query cancels would be sufficient.

>  where is the way to investigate lock's table tree  ?

The pg_locks view should tell you who's hogging the locks.

            regards, tom lane

pgsql-general by date:

Previous
From: Christopher Browne
Date:
Subject: Re: SQL:2003 Window Functions for postgresql 8.3?
Next
From: Tom Lane
Date:
Subject: Re: FW: Serverlog 100GB