pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fold vacuum's 'int options' parameter into VacuumParams.
Date: Mon, 18 Mar 2019 18:05:00 +0000
Message-ID: <E1h5wdA-0003ZW-U2@gemulon.postgresql.org> (raw)

Fold vacuum's 'int options' parameter into VacuumParams.

Many places need both, so this allows a few functions to take one
fewer parameter.  More importantly, as soon as we add a VACUUM
option that takes a non-Boolean parameter, we need to replace
'int options' with a struct, and it seems better to think
of adding more fields to VacuumParams rather than passing around
both VacuumParams and a separate struct as well.

Patch by me, reviewed by Masahiko Sawada

Discussion: http://postgr.es/m/CA+Tgmob6g6-s50fyv8E8he7APfwCYYJ4z0wbZC2yZeSz=26CYQ@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
src/backend/access/heap/vacuumlazy.c |  8 ++--
src/backend/commands/analyze.c       | 24 ++++++------
src/backend/commands/vacuum.c        | 74 ++++++++++++++++++------------------
src/backend/postmaster/autovacuum.c  | 11 +++---
src/include/access/heapam.h          |  2 +-
src/include/commands/vacuum.h        |  7 ++--
6 files changed, 63 insertions(+), 63 deletions(-)



Message-ID: <E1h5wdA-0003ZW-U2@gemulon.postgresql.org>
Permalink:  ../E1h5wdA-0003ZW-U2@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1h5wdA-0003ZW-U2@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: rhaas@postgresql.org
  Subject: Re: pgsql: Fold vacuum's 'int options' parameter into VacuumParams.
  In-Reply-To: <E1h5wdA-0003ZW-U2@gemulon.postgresql.org>
  References: <E1h5wdA-0003ZW-U2@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