Fix erroneous memory context switch in autovacuum, which was returning to a

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 7b4460885f2f651e36099124852aa6c1a9f66f5b
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2009-01-20T12:17:23Z
Releases: 8.2.12
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.

Files

PathChange+/−
src/backend/postmaster/autovacuum.c modified +5 −4