Re: Optimizing GetConflictingVirtualXIDs()

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: Optimizing GetConflictingVirtualXIDs()
Дата
Msg-id 1266169168.7341.9433.camel@ebony
обсуждение исходный текст
Ответ на Re: Optimizing GetConflictingVirtualXIDs()  (Greg Stark <gsstark@mit.edu>)
Ответы Re: Optimizing GetConflictingVirtualXIDs()  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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@2ndquadrant.com> wrote:
> > Optimize GetConflictingVirtualXIDs() in roughly the same manner we
> > optimize TransactionIdIsInProgress().
> >
> > Views?
> 
> EINSUFFICIENTEXPLANATION :)

...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
TransactionIdIsInProgress().

-- Simon Riggs           www.2ndQuadrant.com



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Re: Faster CREATE DATABASE by delaying fsync (was 8.4.1 ubuntu karmic slow createdb)
Следующее
От: Devrim GÜNDÜZ
Дата:
Сообщение: Re: psycopg2 license changed