1 /*-------------------------------------------------------------------------
4 * prototypes for catalog/index.c.
7 * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * $PostgreSQL: pgsql/src/include/catalog/index.h,v 1.66 2006/05/10 23:18:39 tgl Exp $
12 *-------------------------------------------------------------------------
17 #include "access/itup.h"
18 #include "catalog/pg_index.h"
19 #include "nodes/execnodes.h"
22 #define DEFAULT_INDEX_TYPE "btree"
24 /* Typedef for callback function for IndexBuildHeapScan */
25 typedef void (*IndexBuildCallback) (Relation index,
33 extern Oid index_create(Oid heapRelationId,
34 const char *indexRelationName,
37 Oid accessMethodObjectId,
43 bool allow_system_table_mods,
46 extern void index_drop(Oid indexId);
48 extern IndexInfo *BuildIndexInfo(Relation index);
50 extern void FormIndexDatum(IndexInfo *indexInfo,
56 extern void setNewRelfilenode(Relation relation);
58 extern void index_build(Relation heapRelation,
59 Relation indexRelation,
64 extern double IndexBuildHeapScan(Relation heapRelation,
65 Relation indexRelation,
67 IndexBuildCallback callback,
68 void *callback_state);
70 extern void reindex_index(Oid indexId);
71 extern bool reindex_relation(Oid relid, bool toast_too);