]> granicus.if.org Git - postgresql/commit
Fix incomplete backpatch of pg_multixact truncation changes to <= 9.2
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 2 Dec 2013 16:28:18 +0000 (13:28 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 2 Dec 2013 16:28:18 +0000 (13:28 -0300)
commit0176f8bea436e166654fb3e5d2d8a1ff42552f7a
tree01480fcf01b1bc08c8acce66556505319c2422c6
parent559eb85bff80f32a224975e0cad2f2f38e7c3435
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