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

pgsql: Rearrange storage of data in xl_running_xacts.

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Rearrange storage of data in xl_running_xacts.
Date: 2012-12-02 19:48:50
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-committers
Rearrange storage of data in xl_running_xacts.
Previously we stored all xids mixed together.
Now we store top-level xids first, followed
by all subxids. Also skip logging any subxids
if the snapshot is suboverflowed, since there
are potentially large numbers of them and they
are not useful in that case anyway. Has value
in the envisaged design for decoding of WAL.
No planned effect on Hot Standby.

Andres Freund, reviewed by me



Modified Files
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-committers by date

Next:From: Tom LaneDate: 2012-12-02 20:21:11
Subject: pgsql: Don't advance checkPoint.nextXid near the end of a checkpointse
Previous:From: Simon RiggsDate: 2012-12-02 15:03:00
Subject: pgsql: XidEpoch++ if wraparound during checkpoint.

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