summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorBruce Momjian2002-11-15 03:09:39 +0000
committerBruce Momjian2002-11-15 03:09:39 +0000
commit8bc717cb8878ff2baee4e29553736fab57248436 (patch)
tree69fb91e37bc3cd3d19e9aa529e3f03002ddf3719 /src/include
parent5b7eb4dd45359e040cd7175f1b3cfc5ea28ad138 (diff)
New version attached. The following is implemented:
- CLUSTER ALL clusters all the tables that have some index with indisclustered set and the calling user owns. - CLUSTER tablename clusters the named table, using the index with indisclustered set. If no index has the bit set, throws elog(ERROR). - The multi-relation version (CLUSTER ALL) uses a multitransaction approach, similar to what VACUUM does. Alvaro Herrera
Diffstat (limited to 'src/include')
-rw-r--r--src/include/commands/cluster.h5
-rw-r--r--src/include/nodes/parsenodes.h4
2 files changed, 5 insertions, 4 deletions
diff --git a/src/include/commands/cluster.h b/src/include/commands/cluster.h
index ff3a8d82d39..2490278b6ca 100644
--- a/src/include/commands/cluster.h
+++ b/src/include/commands/cluster.h
@@ -6,16 +6,17 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994-5, Regents of the University of California
*
- * $Id: cluster.h,v 1.15 2002/08/10 21:00:34 momjian Exp $
+ * $Id: cluster.h,v 1.16 2002/11/15 03:09:39 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef CLUSTER_H
#define CLUSTER_H
+#include <nodes/parsenodes.h>
/*
* functions
*/
-extern void cluster(RangeVar *oldrelation, char *oldindexname);
+extern void cluster(ClusterStmt *stmt);
#endif /* CLUSTER_H */
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h
index 1198a81de5e..cd976cd1a14 100644
--- a/src/include/nodes/parsenodes.h
+++ b/src/include/nodes/parsenodes.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: parsenodes.h,v 1.214 2002/11/15 02:50:12 momjian Exp $
+ * $Id: parsenodes.h,v 1.215 2002/11/15 03:09:39 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1533,7 +1533,7 @@ typedef struct DropdbStmt
typedef struct ClusterStmt
{
NodeTag type;
- RangeVar *relation; /* relation being indexed */
+ RangeVar *relation; /* relation being indexed, or NULL if all */
char *indexname; /* original index defined */
} ClusterStmt;