Re: Small locking bugs in hs

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: pgsql-hackers(at)postgresql(dot)org, Robert Haas <robertmhaas(at)gmail(dot)com>
Subject: Re: Small locking bugs in hs
Date: 2010-01-20 14:09:05
Message-ID: 1263996545.4043.2633.camel@ebony
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 2010-01-20 at 14:13 +0100, Andres Freund wrote:
> I do understand it correctly that in CancelVirtualTransaction
> LW_SHARED is
> taken only so that another transaction can finish during that time?

We're canceling one specific vxid, so no need to block other snapshots
from being taken.

Read only queries don't take ProcArrayLock when they complete and the
Startup process is the only process to record xact completion during
recovery.

--
Simon Riggs www.2ndQuadrant.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2010-01-20 14:26:39 Re: MySQL-ism help patch for psql
Previous Message Bruce Momjian 2010-01-20 14:05:33 Re: MySQL-ism help patch for psql