OSDN Git Service

Improve our #include situation by moving pointer types away from the
[pg-rex/syncrep.git] / src / include / commands / cluster.h
1 /*-------------------------------------------------------------------------
2  *
3  * cluster.h
4  *        header file for postgres cluster command stuff
5  *
6  * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
7  * Portions Copyright (c) 1994-5, Regents of the University of California
8  *
9  * $PostgreSQL: pgsql/src/include/commands/cluster.h,v 1.35 2008/06/19 00:46:06 alvherre Exp $
10  *
11  *-------------------------------------------------------------------------
12  */
13 #ifndef CLUSTER_H
14 #define CLUSTER_H
15
16 #include "nodes/parsenodes.h"
17 #include "utils/relcache.h"
18
19
20 extern void cluster(ClusterStmt *stmt, bool isTopLevel);
21
22 extern void check_index_is_clusterable(Relation OldHeap, Oid indexOid,
23                                                    bool recheck);
24 extern void mark_index_clustered(Relation rel, Oid indexOid);
25 extern Oid make_new_heap(Oid OIDOldHeap, const char *NewName,
26                           Oid NewTableSpace);
27 extern void swap_relation_files(Oid r1, Oid r2, TransactionId frozenXid);
28
29 #endif   /* CLUSTER_H */