wal_decoding: Introduce InvalidCommandId and declare that to be the new maximum for...
authorAndres Freund <andres@anarazel.de>
Tue, 13 Nov 2012 11:18:07 +0000 (12:18 +0100)
committerAndres Freund <andres@anarazel.de>
Fri, 17 May 2013 11:41:20 +0000 (13:41 +0200)
commit15099bda18db75e17a3bb1cf4eda869bdd2cff49
tree78aaa36c5e6869d5560e38f201b5d22edd79a28f
parent3cdc426ac2e8946b86bc6cb3c9594497bf2672b2
wal_decoding: Introduce InvalidCommandId and declare that to be the new maximum for CommandCounterIncrement

This is useful to be able to represent a CommandId thats invalid. There was no
such value before.

This decreases the possible number of subtransactions by one which seems
unproblematic. Its also not a problem for pg_upgrade because cmin/cmax are
never looked at outside the context of their own transaction (spare timetravel
access, but thats new anyway).
src/backend/access/transam/xact.c
src/include/c.h