Avoid crash in interrupted autovacuum worker, caused by leaving the current
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Sat, 30 Jun 2007 04:08:05 +0000 (04:08 +0000)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Sat, 30 Jun 2007 04:08:05 +0000 (04:08 +0000)
commit2f043c2a36745185fb7419c0a8655c541a3b643e
tree6b4bf3ba756d6cec93ce2429ad3c211a4b20b142
parent7f6535fde2559653f636127da9e1f6c48ecc30bb
Avoid crash in interrupted autovacuum worker, caused by leaving the current
memory context pointing at a context not long lived enough.

Also, create a fake PortalContext where to store the vac_context, if only
to avoid having it be a top-level memory context.
src/backend/postmaster/autovacuum.c