Re: Small locking bugs in hs - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: Small locking bugs in hs
Date
Msg-id 1263996545.4043.2633.camel@ebony
Whole thread Raw
In response to Re: Small locking bugs in hs  (Andres Freund <andres@anarazel.de>)
List 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



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: MySQL-ism help patch for psql
Next
From: Peter Eisentraut
Date:
Subject: Re: MySQL-ism help patch for psql