]> granicus.if.org Git - postgresql/commit
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)
commit2910ccefb454759a9f598996a4be9505b388e824
tree99aeeb302898833560736eaf3288c6cecded1ec3
parent10af02b912714a1cb423d100186b43b20142f008
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