-
- Downloads
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
Showing
- doc/src/sgml/ref/cluster.sgml 38 additions, 3 deletionsdoc/src/sgml/ref/cluster.sgml
- src/backend/commands/cluster.c 301 additions, 24 deletionssrc/backend/commands/cluster.c
- src/backend/parser/gram.y 17 additions, 1 deletionsrc/backend/parser/gram.y
- src/backend/tcop/utility.c 3 additions, 6 deletionssrc/backend/tcop/utility.c
- src/include/commands/cluster.h 3 additions, 2 deletionssrc/include/commands/cluster.h
- src/include/nodes/parsenodes.h 2 additions, 2 deletionssrc/include/nodes/parsenodes.h
- src/test/regress/expected/cluster.out 64 additions, 0 deletionssrc/test/regress/expected/cluster.out
- src/test/regress/sql/cluster.sql 56 additions, 0 deletionssrc/test/regress/sql/cluster.sql
Loading
Please register or sign in to comment