Re: Allow CLUSTER, VACUUM FULL and REINDEX to change tablespace on the fly
Justin Pryzby <pryzby@telsasoft.com>
From: Justin Pryzby <pryzby@telsasoft.com>
To: Alexey Kondratov <a.kondratov@postgrespro.ru>
Cc: Michael Paquier <michael@paquier.xyz>, Alvaro Herrera <alvherre@2ndquadrant.com>, Masahiko Sawada <masahiko.sawada@2ndquadrant.com>, Steve Singer <steve@ssinger.info>, pgsql-hackers@lists.postgresql.org, Robert Haas <robertmhaas@gmail.com>, Alexander Korotkov <a.korotkov@postgrespro.ru>, Masahiko Sawada <sawada.mshk@gmail.com>, Jose Luis Tallon <jltallon@adv-solutions.net>
Date: 2020-09-02T23:07:07Z
Lists: pgsql-hackers
Attachments
On Thu, Sep 03, 2020 at 12:00:17AM +0300, Alexey Kondratov wrote: > On 2020-09-02 07:56, Justin Pryzby wrote: > > > > Done in the attached, which is also rebased on 1d6541666. > > > > And added RelationAssumeNewRelfilenode() as I mentioned - but I'm hoping > > to > > hear from Michael about any reason not to call > > RelationSetNewRelfilenode() > > instead of directly calling the things it would itself call. > > The latest patch set immediately got a conflict with Michael's fixup > 01767533, so I've rebased it first of all. On my side, I've also rearranged function parameters to make the diff more readable. And squishes your changes into the respective patches. Michael started a new thread about retiring ReindexStmt->concurrent, which I guess will cause more conflicts (although I don't see why we wouldn't implement a generic List grammar now rather than only after a preliminary patch). -- Justin
Commits
-
Add TABLESPACE option to REINDEX
- c5b286047cd6 14.0 landed
-
Refactor code in tablecmds.c to check and process tablespace moves
- 4c9c359d38ff 14.0 landed
-
Refactor option handling of CLUSTER, REINDEX and VACUUM
- a3dc926009be 14.0 landed
-
pg_dump: Don't use enums for defining bit mask values
- d2a2808eb444 14.0 landed
-
Refactor CLUSTER and REINDEX grammar to use DefElem for option lists
- b5913f612079 14.0 landed
-
Refactor parsing rules for option lists of EXPLAIN, VACUUM and ANALYZE
- 873ea9ee692e 14.0 landed
-
Improve tab completion of REINDEX in psql
- 1f75b454134c 14.0 landed
-
Fix possible crash during FATAL exit from reindexing.
- d12bdba77b0f 13.0 cited