Fix erroneous memory context switch in autovacuum, which was returning to a
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 20 Jan 2009 12:17:23 +0000 (12:17 +0000)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 20 Jan 2009 12:17:23 +0000 (12:17 +0000)
commit7b4460885f2f651e36099124852aa6c1a9f66f5b
treea8987f6e0a22b11848fce26b489c0e459bbff5a6
parentd7adf1b3420f40e32c5b8fdc5f9c101eb7711baf
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