]> granicus.if.org Git - postgresql/commit
Make the server track an 'XID epoch', that is, maintain higher-order bits
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 21 Aug 2006 16:16:31 +0000 (16:16 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 21 Aug 2006 16:16:31 +0000 (16:16 +0000)
commit35af5422f640e74029a167d106604da35ae64c5f
tree88297ff1c3c369c1a2a2063b319518b0db72b4fe
parent1054c38069359239d4c1469a1dab543f11706bc2
Make the server track an 'XID epoch', that is, maintain higher-order bits
of the transaction ID counter.  Nothing is done with the epoch except to
store it in checkpoint records, but this provides a foundation with which
add-on code can pretend that XIDs never wrap around.  This is a severely
trimmed and rewritten version of the xxid patch submitted by Marko Kreen.
Per discussion, the epoch counter seems the only part of xxid that really
needs to be in the core server.
doc/src/sgml/ref/pg_resetxlog.sgml
src/backend/access/transam/xlog.c
src/bin/pg_controldata/pg_controldata.c
src/bin/pg_resetxlog/pg_resetxlog.c
src/include/access/xlog.h
src/include/catalog/pg_control.h