Fix incomplete backpatch of pg_multixact truncation changes to <= 9.2
authorAlvaro Herrera <[email protected]>
Mon, 2 Dec 2013 16:28:10 +0000 (13:28 -0300)
committerAlvaro Herrera <[email protected]>
Mon, 2 Dec 2013 16:28:10 +0000 (13:28 -0300)
commit3d974e303da29ff97822212ab8722d6e366c5119
treef66ebb305b5a13c4529dabada1c5ec7ef301272b
parent8269e4091c45f05d92a7b22a3d5bf96e197bf45b
Fix incomplete backpatch of pg_multixact truncation changes to <= 9.2

The backpatch of a95335b544d9c8377e9dc7a399d8e9a155895f82 to 9.2, 9.1
and 9.0 was incomplete, missing changes to xlog.c, primarily the call
to TrimMultiXact(). Testing presumably didn't show a problem without
these changes because TrimMultiXact() performs defense-in-depth work,
which is not strictly necessary.

It also missed moving StartupMultiXact() which would have been
problematic if a restartpoing happened in exactly the wrong moment,
causing a transient error.

Andres Freund
src/backend/access/transam/xlog.c
src/include/access/multixact.h