]> granicus.if.org Git - postgresql/blob - src/include/commands/cluster.h
Rename DLLIMPORT macro to PGDLLIMPORT to avoid conflict with
[postgresql] / src / include / commands / cluster.h
1 /*-------------------------------------------------------------------------
2  *
3  * cluster.h
4  *        header file for postgres cluster command stuff
5  *
6  * Portions Copyright (c) 1996-2007, 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.33 2007/05/18 23:19:42 alvherre Exp $
10  *
11  *-------------------------------------------------------------------------
12  */
13 #ifndef CLUSTER_H
14 #define CLUSTER_H
15
16 #include "nodes/parsenodes.h"
17 #include "utils/rel.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 */