Fix incomplete backpatch of pg_multixact truncation changes to <= 9.2

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 715f44be058c4c270af9ef60493ed74539b513d1
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2013-12-02T16:28:24Z
Releases: 9.2.6
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

Files

PathChange+/−
src/backend/access/transam/xlog.c modified +10 −3
src/include/access/multixact.h modified +1 −0