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 20:59:21 +0000 (09:59 +1300)
commit6bda2af039d45d9a136ddc04e2242163177ab5ad
tree5500c38fa9314bb3918bd9d866da5f776897314b
parent0d21f919eb86cd3baa267844d111c6a5af480696
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: https://postgr.es/m/DAFB8AFF-2F05-4E33-AD7F-FF8B0F760C17%40amazon.com
src/backend/commands/vacuum.c