pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Refactor code of reindexdb for query generation
Date: Tue, 02 Jul 2019 02:44:20 +0000
Message-ID: <E1hi8mK-0007W1-1O@gemulon.postgresql.org> (raw)

Refactor code of reindexdb for query generation

This merges the portion related to REINDEX SYSTEM into the routine
already available for all the other reindex types, making the query
generation cleaner.  While on it, change the handling of the reindex
types using an enum, which allows to get rid of the hardcoded strings
used directly in the query generation present for the same purpose (aka
"TABLE", "DATABASE", etc.).

Per discussion with Julien Rouhaud, Tom Lane, Alvaro Herrera and me.

Author: Julien Rouhaud
Discussion: https://postgr.es/m/CAOBaU_bSmSik_WRK9niDnm-3NkNZky6+uKxkmQwvthZvMWpS5A@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9adda24543e354317abf5400d7e7d3961a93bce6

Modified Files
--------------
src/bin/scripts/reindexdb.c      | 164 +++++++++++++++++++++------------------
src/tools/pgindent/typedefs.list |   1 +
2 files changed, 90 insertions(+), 75 deletions(-)



Message-ID: <E1hi8mK-0007W1-1O@gemulon.postgresql.org>
Permalink:  ../E1hi8mK-0007W1-1O@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hi8mK-0007W1-1O@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: michael@paquier.xyz
  Subject: Re: pgsql: Refactor code of reindexdb for query generation
  In-Reply-To: <E1hi8mK-0007W1-1O@gemulon.postgresql.org>
  References: <E1hi8mK-0007W1-1O@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