pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Introduce IndexAM fields for parallel vacuum.
Date: Wed, 15 Jan 2020 01:57:34 +0000
Message-ID: <E1irXw6-0004A9-7r@gemulon.postgresql.org> (raw)

Introduce IndexAM fields for parallel vacuum.

Introduce new fields amusemaintenanceworkmem and amparallelvacuumoptions
in IndexAmRoutine for parallel vacuum.  The amusemaintenanceworkmem tells
whether a particular IndexAM uses maintenance_work_mem or not.  This will
help in controlling the memory used by individual workers as otherwise,
each worker can consume memory equal to maintenance_work_mem.  The
amparallelvacuumoptions tell whether a particular IndexAM participates in
a parallel vacuum and if so in which phase (bulkdelete, vacuumcleanup) of
vacuum.

Author: Masahiko Sawada and Amit Kapila
Reviewed-by: Dilip Kumar, Amit Kapila, Tomas Vondra and Robert Haas
Discussion:
https://postgr.es/m/CAD21AoDTPMgzSkV4E3SFo1CH_x50bf5PqZFQf4jmqjk-C03BWg@mail.gmail.com
https://postgr.es/m/CAA4eK1LmcD5aPogzwim5Nn58Ki+74a6Edghx4Wd8hAskvHaq5A@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4d8a8d0c738410ec02aab46b1ebe1835365ad384

Modified Files
--------------
contrib/bloom/blutils.c                          |  4 +++
doc/src/sgml/indexam.sgml                        |  4 +++
src/backend/access/brin/brin.c                   |  4 +++
src/backend/access/gin/ginutil.c                 |  4 +++
src/backend/access/gist/gist.c                   |  4 +++
src/backend/access/hash/hash.c                   |  3 ++
src/backend/access/nbtree/nbtree.c               |  3 ++
src/backend/access/spgist/spgutils.c             |  4 +++
src/include/access/amapi.h                       |  4 +++
src/include/commands/vacuum.h                    | 38 ++++++++++++++++++++++++
src/test/modules/dummy_index_am/dummy_index_am.c |  3 ++
11 files changed, 75 insertions(+)



Message-ID: <E1irXw6-0004A9-7r@gemulon.postgresql.org>
Permalink:  ../E1irXw6-0004A9-7r@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1irXw6-0004A9-7r@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: akapila@postgresql.org
  Subject: Re: pgsql: Introduce IndexAM fields for parallel vacuum.
  In-Reply-To: <E1irXw6-0004A9-7r@gemulon.postgresql.org>
  References: <E1irXw6-0004A9-7r@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox