[PATCH 08/14] Store the number of subtransactions in xl_running_xacts separately from toplevel xids

Поиск
Список
Период
Сортировка
От Andres Freund
Тема [PATCH 08/14] Store the number of subtransactions in xl_running_xacts separately from toplevel xids
Дата
Msg-id 1352942234-3953-8-git-send-email-andres@2ndquadrant.com
обсуждение исходный текст
Ответ на logical changeset generation v3  (andres@anarazel.de (Andres Freund))
Ответы Re: [PATCH 08/14] Store the number of subtransactions in xl_running_xacts separately from toplevel xids  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-hackers
To avoid complicating logic we store both, the toplevel and the subxids, in
->xip, first ->xcnt toplevel ones, and then ->subxcnt subxids.
Also skip logging any subxids if the snapshot is suboverflowed, they aren't
useful in that case anyway.

This allows to make some operations cheaper and it allows faster startup for
the future logical decoding feature because that doesn't care about
subtransactions/suboverflow'edness.
---
 src/backend/access/transam/xlog.c   |  2 ++
 src/backend/storage/ipc/procarray.c | 65 ++++++++++++++++++++++++-------------
 src/backend/storage/ipc/standby.c   |  8 +++--
 src/include/storage/standby.h       |  2 ++
 4 files changed, 52 insertions(+), 25 deletions(-)


Вложения

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: [PATCH 06/14] Add a new function pg_relation_by_filenode to lookup up a relation given the tablespace and the filenode OIDs
Следующее
От: Andres Freund
Дата:
Сообщение: [PATCH 11/14] Introduce wal decoding via catalog timetravel