mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
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
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user