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>, Masahiko Sawada <masahiko.sawada@2ndquadrant.com>, Steve Singer <steve@ssinger.info>, pgsql-hackers@lists.postgresql.org, Alvaro Herrera <alvherre@2ndquadrant.com>, 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-04-12T01:33:52Z
Lists: pgsql-hackers
Attachments
- v20-0001-tab-completion-for-reindex-verbose.patch (text/x-diff)
On Tue, Apr 07, 2020 at 03:44:06PM -0500, Justin Pryzby wrote: > > I mean to literally use vac_analyze_option_list for reindex and cluster as > > well. Please, check attached 0007. Now, vacuum, reindex and cluster filter > > options list and reject everything that is not supported, so it seems > > completely fine to just reuse vac_analyze_option_list, doesn't it? > > It's fine with me :) > > Possibly we could rename vac_analyze_option_list as generic_option_list. > > I'm resending the patchset like that, and fixed cluster/index to handle not > just "VERBOSE" but "verbose OFF", rather than just ignoring the argument. > > That's the last known issue with the patch. I doubt anyone will elect to pick > it up in the next 8 hours, but I think it's in very good shape for v14 :) I tweaked some comments and docs and plan to mark this RfC. -- 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