]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix pg_upgrade's multixact handling (again)
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 30 Apr 2015 16:55:06 +0000 (13:55 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 30 Apr 2015 16:55:06 +0000 (13:55 -0300)
commite60581fdf3dee39d189925673ec17d2c794e84b5
treed322b225fbcc2cc6cc7194fcaeed9f8592612c2f
parentcf0d888ac5fbdc62e09cde3facb8b8aaa549c015
Fix pg_upgrade's multixact handling (again)

We need to create the pg_multixact/offsets file deleted by pg_upgrade
much earlier than we originally were: it was in TrimMultiXact(), which
runs after we exit recovery, but it actually needs to run earlier than
the first call to SetMultiXactIdLimit (before recovery), because that
routine already wants to read the first offset segment.

Per pg_upgrade trouble report from Jeff Janes.

While at it, silence a compiler warning about a pointless assert that an
unsigned variable was being tested non-negative.  This was a signed
constant in Thomas Munro's patch which I changed to unsigned before
commit.  Pointed out by Andres Freund.
src/backend/access/transam/multixact.c