Re: Allow CLUSTER, VACUUM FULL and REINDEX to change tablespace on the fly
Alexey Kondratov <a.kondratov@postgrespro.ru>
From: Alexey Kondratov <a.kondratov@postgrespro.ru>
To: michael@paquier.xyz
Cc: Justin Pryzby <pryzby@telsasoft.com>, Alvaro Herrera
<alvherre@alvh.no-ip.org>, Peter Eisentraut
<peter.eisentraut@enterprisedb.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: 2021-01-13T13:39:40Z
Lists: pgsql-hackers
Attachments
- refactor-utility-opts-michael-6.patch (text/x-diff) patch
On 2021-01-13 14:34, Michael Paquier wrote: > On Wed, Jan 13, 2021 at 05:22:49PM +0900, Michael Paquier wrote: >> Yeah, that makes sense. I'll send an updated patch based on that. > > And here you go as per the attached. I don't think that there was > anything remaining on my radar. This version still needs to be > indented properly though. > > Thoughts? > Thanks. + bits32 options; /* bitmask of CLUSTEROPT_* */ This should say '/* bitmask of CLUOPT_* */', I guess, since there are only CLUOPT's defined. Otherwise, everything looks as per discussed upthread. By the way, something went wrong with the last email subject, so I have changed it back to the original in this response. I also attached your patch (with only this CLUOPT_* correction) to keep it in the thread for sure. Although, postgresql.org's web archive is clever enough to link your email to the same thread even with different subject. Regards -- Alexey Kondratov Postgres Professional https://www.postgrespro.com Russian Postgres Company
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