Fix bug that could try to freeze running multixacts.
authorThomas Munro <tmunro@postgresql.org>
Wed, 16 Oct 2019 20:59:21 +0000 (09:59 +1300)
committerThomas Munro <tmunro@postgresql.org>
Wed, 16 Oct 2019 21:14:51 +0000 (10:14 +1300)
commit080cf32d22317591cd8891c797a4d925cf1dbda2
tree9375173d9169c107ecdfd905a3f967b85e5f798c
parentbc3a94dc00059955aeb611d611d064faf66dc2f8
Fix bug that could try to freeze running multixacts.

Commits 801c2dc7 and 801c2dc7 made it possible for vacuum to
try to freeze a multixact that is still running.  That was
prevented by a check, but raised an error.  Repair.

Back-patch all the way.

Author: Nathan Bossart, Jeremy Schneider
Reported-by: Jeremy Schneider
Reviewed-by: Jim Nasby, Thomas Munro
Discussion: http://postgr.es/m/DAFB8AFF-2F05-4E33-AD7F-FF8B0F760C17%40amazon.com
src/backend/commands/vacuum.c