pgsql: Fix error handling path in autovacuum launcher

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix error handling path in autovacuum launcher
Date: 2017-08-15 16:37:35
Message-ID: E1dheqV-0003Hd-Ga@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix error handling path in autovacuum launcher

The original code (since 00e6a16d01) was assuming aborting the
transaction in autovacuum launcher was sufficient to release all
resources, but in reality the launcher runs quite a lot of code out of
any transactions. Re-introduce individual cleanup calls to make abort
more robust.

Reported-by: Robert Haas
Discussion: https://postgr.es/m/CA+TgmobQVbz4K_+RSmiM9HeRKpy3vS5xnbkL95gSEnWijzprKQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d9a622cee162775ae42aa5c1ac592760d0d777d9

Modified Files
--------------
src/backend/postmaster/autovacuum.c | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-08-15 18:06:09 pgsql: Avoid out-of-memory in a hash join with many duplicate inner key
Previous Message Robert Haas 2017-08-15 16:33:01 pgsql: Assorted preparatory refactoring for partition-wise join.