Re: Deferred constraints and locks... - Mailing list pgsql-general

From Tom Lane
Subject Re: Deferred constraints and locks...
Date
Msg-id 3428.1202853609@sss.pgh.pa.us
Whole thread Raw
In response to Re: Deferred constraints and locks...  (Nathan Wilhelmi <wilhelmi@ucar.edu>)
List pgsql-general
Nathan Wilhelmi <wilhelmi@ucar.edu> writes:
> Tom Lane wrote:
>> Insert statements would naturally take RowExclusiveLock, but that
>> doesn't block other DML operations.  So the question is what *else*
>> are you doing?

> Good question, is there anyway to figure out which rows are locked?

RowExclusiveLock is a table-level lock, not a lock on a specific row.
See
http://www.postgresql.org/docs/8.2/static/explicit-locking.html

            regards, tom lane

pgsql-general by date:

Previous
From: Robert Treat
Date:
Subject: Re: end of life for pg versions...
Next
From: Tom Lane
Date:
Subject: Re: deadlock while re-indexing table