Fix incomplete backpatch of pg_multixact truncation changes to <= 9.2
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 2 Dec 2013 16:28:24 +0000 (13:28 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 2 Dec 2013 16:28:24 +0000 (13:28 -0300)
commit715f44be058c4c270af9ef60493ed74539b513d1
tree67bfac033fce0d6b93ac227bfa8c50435f44847e
parentff61dd206699187ca6d0b11ae3a173b690fd4bc4
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