aboutsummaryrefslogtreecommitdiff
path: root/src/include/commands/cluster.h
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2022-04-02 19:08:34 +0200
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2022-04-02 19:08:34 +0200
commitcfdd03f45e6afc632fbe70519250ec19167d6765 (patch)
treeaaa33106f858b9170192561addd9359417e9ac71 /src/include/commands/cluster.h
parentb7c485fb93726cb04b858442d73043b56e603711 (diff)
downloadpostgresql-cfdd03f45e6afc632fbe70519250ec19167d6765.tar.gz
postgresql-cfdd03f45e6afc632fbe70519250ec19167d6765.zip
Allow CLUSTER on partitioned tables
This is essentially the same as applying VACUUM FULL to a partitioned table, which has been supported since commit 3c3bb99330aa (March 2017). While there's no great use case in applying CLUSTER to partitioned tables, we don't have any strong reason not to allow it either. For now, partitioned indexes cannot be marked clustered, so an index must always be specified. While at it, rename some variables that were RangeVars during the development that led to 8bc717cb8878 but never made it that way to the source tree; there's no need to perpetuate names that have always been more confusing than helpful. Author: Justin Pryzby <pryzby@telsasoft.com> Reviewed-by: Matthias van de Meent <boekewurm+postgres@gmail.com> Discussion: https://postgr.es/m/20201028003312.GU9241@telsasoft.com Discussion: https://postgr.es/m/20200611153502.GT14879@telsasoft.com
Diffstat (limited to 'src/include/commands/cluster.h')
-rw-r--r--src/include/commands/cluster.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/include/commands/cluster.h b/src/include/commands/cluster.h
index 3db375d7cc7..3c279f6210a 100644
--- a/src/include/commands/cluster.h
+++ b/src/include/commands/cluster.h
@@ -19,9 +19,11 @@
#include "utils/relcache.h"
-/* flag bits for ClusterParams->flags */
-#define CLUOPT_RECHECK 0x01 /* recheck relation state */
-#define CLUOPT_VERBOSE 0x02 /* print progress info */
+/* flag bits for ClusterParams->options */
+#define CLUOPT_VERBOSE 0x01 /* print progress info */
+#define CLUOPT_RECHECK 0x02 /* recheck relation state */
+#define CLUOPT_RECHECK_ISCLUSTERED 0x04 /* recheck relation state for
+ * indisclustered */
/* options for CLUSTER */
typedef struct ClusterParams