From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Refactor relation opening for VACUUM and ANALYZE
Date: Tue, 02 Oct 2018 00:01:24 +0000
Message-ID: <E1g787w-0005YH-Si@gemulon.postgresql.org> (raw)
Refactor relation opening for VACUUM and ANALYZE
VACUUM and ANALYZE share similar logic when it comes to opening a
relation to work on in terms of how the relation is opened, in which
order locks are tried and how logs should be generated when something
does not work as expected.
This commit refactors things so as both use the same code path to handle
the way a relation is opened, so as the integration of new options
becomes easier.
Author: Michael Paquier
Reviewed-by: Nathan Bossart
Discussion: https://postgr.es/m/20180927075152.GT1659@paquier.xyz
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/e3a25ab9ea56ac540dc683cdf6f6a4b923bd22be
Modified Files
--------------
src/backend/commands/analyze.c | 55 ++------------
src/backend/commands/vacuum.c | 169 ++++++++++++++++++++++++++---------------
src/include/commands/vacuum.h | 2 +
3 files changed, 117 insertions(+), 109 deletions(-)
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: michael@paquier.xyz
Subject: Re: pgsql: Refactor relation opening for VACUUM and ANALYZE
In-Reply-To: <E1g787w-0005YH-Si@gemulon.postgresql.org>
References: <E1g787w-0005YH-Si@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