]> granicus.if.org Git - postgresql/commit
Fix error handling path in autovacuum launcher
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 15 Aug 2017 16:35:12 +0000 (13:35 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 15 Aug 2017 16:35:12 +0000 (13:35 -0300)
commitd9a622cee162775ae42aa5c1ac592760d0d777d9
treec18a9b7d062691d0798a98f4ace267cad01c7441
parente139f1953f29db245f60a7acb72fccb1e05d2442
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
src/backend/postmaster/autovacuum.c