Fix erroneous memory context switch in autovacuum, which was returning to a
authorAlvaro Herrera <[email protected]>
Tue, 20 Jan 2009 12:17:29 +0000 (12:17 +0000)
committerAlvaro Herrera <[email protected]>
Tue, 20 Jan 2009 12:17:29 +0000 (12:17 +0000)
commit40f1690d29ce7c774eb14e3f877b65800c8a6ab7
treeee5e09cf6e944f75fa8eea244ec31d5753e3a436
parent1dfb01ed40759de42966adca8d0dd22467686369
Fix erroneous memory context switch in autovacuum, which was returning to a
context long after it had been destroyed.

Per problem report from Justin Pasher.  Patch by Tom Lane and me.

8.3 and later do not have this bug, because this code has been restructured for
unrelated reasons.  In 8.2 it does not manifest as a crash, but it still seems
safer fixing it nonetheless.
src/backend/postmaster/autovacuum.c