New version attached. The following is implemented:
Bruce Momjian <bruce@momjian.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/cluster.sgml | modified | +38 −3 |
| src/backend/commands/cluster.c | modified | +301 −24 |
| src/backend/parser/gram.y | modified | +17 −1 |
| src/backend/tcop/utility.c | modified | +3 −6 |
| src/include/commands/cluster.h | modified | +3 −2 |
| src/include/nodes/parsenodes.h | modified | +2 −2 |
| src/test/regress/expected/cluster.out | modified | +64 −0 |
| src/test/regress/sql/cluster.sql | modified | +56 −0 |