23 #define CLUOPT_VERBOSE 0x01
24 #define CLUOPT_RECHECK 0x02
25 #define CLUOPT_RECHECK_ISCLUSTERED 0x04
41 char relpersistence,
LOCKMODE lockmode);
43 bool is_system_catalog,
44 bool swap_toast_by_content,
45 bool check_constraints,
49 char newrelpersistence);
TransactionId MultiXactId
void cluster_rel(Oid tableOid, Oid indexOid, ClusterParams *params)
void check_index_is_clusterable(Relation OldHeap, Oid indexOid, LOCKMODE lockmode)
void finish_heap_swap(Oid OIDOldHeap, Oid OIDNewHeap, bool is_system_catalog, bool swap_toast_by_content, bool check_constraints, bool is_internal, TransactionId frozenXid, MultiXactId cutoffMulti, char newrelpersistence)
Oid make_new_heap(Oid OIDOldHeap, Oid NewTableSpace, Oid NewAccessMethod, char relpersistence, LOCKMODE lockmode)
struct ClusterParams ClusterParams
void cluster(ParseState *pstate, ClusterStmt *stmt, bool isTopLevel)
void mark_index_clustered(Relation rel, Oid indexOid, bool is_internal)