pgsql: Simplify autovacuum work-item implementation

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Simplify autovacuum work-item implementation
Date: 2017-08-15 21:14:37
Message-ID: E1dhjAb-0000Kf-Nh@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Simplify autovacuum work-item implementation

The initial implementation of autovacuum work-items used a dynamic
shared memory area (DSA). However, it's argued that dynamic shared
memory is not portable enough, so we cannot rely on it being supported
everywhere; at the same time, autovacuum work-items are now a critical
part of the server, so it's not acceptable that they don't work in the
cases where dynamic shared memory is disabled. Therefore, let's fall
back to a simpler implementation of work-items that just uses
autovacuum's main shared memory segment for storage.

Discussion: https://postgr.es/m/CA+TgmobQVbz4K_+RSmiM9HeRKpy3vS5xnbkL95gSEnWijzprKQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/31ae1638ce35c23979f9bcbb92c6bb51744dbccb

Modified Files
--------------
src/backend/postmaster/autovacuum.c | 318 +++++++-----------------------------
1 file changed, 63 insertions(+), 255 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-08-15 21:15:27 Re: [COMMITTERS] pgsql: Simplify plpgsql's check for simple expressions.
Previous Message Tom Lane 2017-08-15 20:50:08 pgsql: Make simpler-simple-expressions code cope with a Gather plan.