Re: transactionid lock type?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jan de Visser <jdevisser(at)digitalfairway(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: transactionid lock type?
Date: 2008-01-18 17:54:18
Message-ID: 10661.1200678858@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jan de Visser <jdevisser(at)digitalfairway(dot)com> writes:
> So what could make my transaction decide to wait for that other tx?

Usually what this indicates is blocking to acquire a row-level lock,
eg that transaction is waiting to see if it can update a row that the
other one already updated. In 8.1 and later you can find out which row
is contended for by seeing what row-level lock is held by the *waiting*
transaction (yes, really, not the waited-for one).

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-01-18 17:55:34 Re: Forgot to dump old data before re-installing machine
Previous Message Tom Lane 2008-01-18 17:38:58 Re: case dumbiness in return from functions