Re: Transaction-level advisory lock unlocking and transaction end - Mailing list pgsql-general

From Tom Lane
Subject Re: Transaction-level advisory lock unlocking and transaction end
Date
Msg-id 6546.1421341745@sss.pgh.pa.us
Whole thread Raw
In response to Transaction-level advisory lock unlocking and transaction end  (Saimon Lim <aimon.slim@gmail.com>)
List pgsql-general
Saimon Lim <aimon.slim@gmail.com> writes:
>> Transaction-level lock requests ... are automatically released at the end
>> of the transaction ...

>   So, what order will the use of transactions and unlock the lock?
> The transaction would be applied at first and the lock would be unlocked
> after it or vice versa?
> Or any order in this case is not guaranteed?

Locks are always released after the transaction has committed.

            regards, tom lane


pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: pgagent jobs Could not connect to the database !
Next
From: Paul Ramsey
Date:
Subject: Re: Indexing large table of coordinates with GiST