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: Add --tablespace option to reindexdb
Date: Wed, 03 Mar 2021 01:17:15 +0000
Message-ID: <E1lHG8Z-0001TT-Ah@gemulon.postgresql.org> (raw)

Add --tablespace option to reindexdb

This option provides REINDEX (TABLESPACE) for reindexdb, applying the
tablespace value given by the caller to all the REINDEX queries
generated.

While on it, this commit adds some tests for REINDEX TABLESPACE, with
and without CONCURRENTLY, when run on toast indexes and tables.  Such
operations are not allowed, and toast relation names are not stable
enough to be part of the main regression test suite (even if using a PL
function with a TRY/CATCH logic, as CONCURRENTLY could not be tested).

Author: Michael Paquier
Reviewed-by: Mark Dilger, Daniel Gustafsson
Discussion: https://postgr.es/m/YDiaDMnzLICqeukl@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/57e6db706e81fd2609fa385677e6ae72471822fe

Modified Files
--------------
doc/src/sgml/ref/reindexdb.sgml    |  10 ++++
src/bin/scripts/reindexdb.c        | 109 +++++++++++++++++++++++++------------
src/bin/scripts/t/090_reindexdb.pl |  81 ++++++++++++++++++++++++++-
3 files changed, 163 insertions(+), 37 deletions(-)



Message-ID: <E1lHG8Z-0001TT-Ah@gemulon.postgresql.org>
Permalink:  ../E1lHG8Z-0001TT-Ah@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lHG8Z-0001TT-Ah@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: Add --tablespace option to reindexdb
  In-Reply-To: <E1lHG8Z-0001TT-Ah@gemulon.postgresql.org>
  References: <E1lHG8Z-0001TT-Ah@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