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:29 +0000 (12:17 +0000)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 20 Jan 2009 12:17:29 +0000 (12:17 +0000)
commit74f933a648bf7939799898030bb774059e6e591b
treeda1a1964cfbf7ab6e8633c649885579660dced03
parent8bdcdd2274cf880d3d028c5b2df49977ff6444b8
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