pgsql: Avoid crash in interrupted autovacuum worker, caused by leaving

From: alvherre(at)postgresql(dot)org (Alvaro Herrera)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Avoid crash in interrupted autovacuum worker, caused by leaving
Date: 2007-06-30 04:08:05
Message-ID: 20070630040805.4E9759FB692@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Modified Files:
--------------
pgsql/src/backend/postmaster:
autovacuum.c (r1.52 -> r1.53)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/postmaster/autovacuum.c.diff?r1=1.52&r2=1.53)

Browse pgsql-committers by date

  From Date Subject
Next Message User H-saito 2007-06-30 16:26:35 pgsnmpd - pgsnmpd: Although this is unnecessary,it exists here.
Previous Message User Pgunittest 2007-06-29 23:31:42 pgunittest - pgUnitTest: