TransactionIdIsInProgress() cache

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема TransactionIdIsInProgress() cache
Дата
Msg-id 1202307926.29242.17.camel@ebony.site
обсуждение исходный текст
Ответы Re: TransactionIdIsInProgress() cache  (Bruce Momjian <bruce@momjian.us>)
Re: TransactionIdIsInProgress() cache  ("Heikki Linnakangas" <heikki@enterprisedb.com>)
Re: TransactionIdIsInProgress() cache  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
We currently have a single item cache of the last checked TransactionId,
which optimises the call to TransactionIdDidCommit() during
HeapTupleSatisfiesMVCC() and partners.

Before we call TransactionIdDidCommit() we always call
TransactionIdIsInProgress().

TransactionIdIsInProgress() doesn't check the single item cache, so even
if we have just checked for this xid, we will check it again. Since this
function takes ProcArrayLock and may be called while holding other locks
it will improve scalability if we can skip the call, for the cost of an
integer comparison.

Following patch implements fastpath in TransactionIdIsInProgress() to
utilise single item cache.

--
  Simon Riggs
  2ndQuadrant  http://www.2ndQuadrant.com

Вложения

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

Предыдущее
От:
Дата:
Сообщение: 2WRS [WIP]
Следующее
От: David Fetter
Дата:
Сообщение: Re: 2WRS [WIP]