Re: Transaction-level advisory lock unlocking and transaction end

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Saimon Lim <aimon(dot)slim(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Transaction-level advisory lock unlocking and transaction end
Date: 2015-01-15 17:09:05
Message-ID: 6546.1421341745@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Saimon Lim <aimon(dot)slim(at)gmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Paul Ramsey 2015-01-15 17:27:20 Re: Indexing large table of coordinates with GiST
Previous Message Adrian Klaver 2015-01-15 17:06:29 Re: pgagent jobs Could not connect to the database !