Re: ExclusiveLock without a relation in pg_locks - Mailing list pgsql-general

From Michael Fuhr
Subject Re: ExclusiveLock without a relation in pg_locks
Date
Msg-id 20060223180851.GA43438@winnie.fuhr.org
Whole thread Raw
In response to Re: ExclusiveLock without a relation in pg_locks  ("Carlos Oliva" <carlos@pbsinet.com>)
Responses Re: ExclusiveLock without a relation in pg_locks  ("Carlos Oliva" <carlos@pbsinet.com>)
List pgsql-general
On Thu, Feb 23, 2006 at 11:08:07AM -0500, Carlos Oliva wrote:
> Thank you very much for your answer.  I think that I am seeing those self
> transaction id locks as "ExclusiveLocks"
>
> Would you expect to see an "ExclusiveLock" with a query of type Select (not
> Select Update or Update or Insert)?

Not in general, unless perhaps the select called a function that
acquired such a lock.  The Concurrency Control chapter in the
documentation has a section on lock types and the commands that
acquire them:

http://www.postgresql.org/docs/8.1/interactive/explicit-locking.html

Are you just curious or are you seeing such a situation?

--
Michael Fuhr

pgsql-general by date:

Previous
From: "Jon Cruz"
Date:
Subject: Limitations : Number of ...
Next
From: "A. Kretschmer"
Date:
Subject: Re: Limitations : Number of ...