Skip site navigation (1) Skip section navigation (2)

Re: Optimizing GetConflictingVirtualXIDs()

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Greg Stark <gsstark(at)mit(dot)edu>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Optimizing GetConflictingVirtualXIDs()
Date: 2010-02-14 17:39:28
Message-ID: 1266169168.7341.9433.camel@ebony (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
On Sun, 2010-02-14 at 17:06 +0000, Greg Stark wrote:
> On Sun, Feb 14, 2010 at 2:59 PM, Simon Riggs <simon(at)2ndquadrant(dot)com> wrote:
> > Optimize GetConflictingVirtualXIDs() in roughly the same manner we
> > optimize TransactionIdIsInProgress().
> >
> > Views?

...I like that error code.

The patch adds a calculation of RecentGlobalXmin each time it accesses
the proc array to derive conflicts. It then uses the derived value to
provide a fast-path out if a potential snapshot conflict arrives that we
already know will not conflict with any backends. The purpose of this is
to reduce the number of scans of the procarray and improve the
performance of the startup process.

The mechanism and purpose is the same as the first check in

 Simon Riggs 

In response to


pgsql-hackers by date

Next:From: Devrim GÜNDÜZDate: 2010-02-14 17:40:16
Subject: Re: psycopg2 license changed
Previous:From: Federico Di GregorioDate: 2010-02-14 17:37:25
Subject: Re: psycopg2 license changed

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group