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.71 2006/08/25 04:06:55 tgl Exp $
12 *-------------------------------------------------------------------------
17 #include "nodes/execnodes.h"
20 #define DEFAULT_INDEX_TYPE "btree"
22 /* Typedef for callback function for IndexBuildHeapScan */
23 typedef void (*IndexBuildCallback) (Relation index,
31 extern Oid index_create(Oid heapRelationId,
32 const char *indexRelationName,
35 Oid accessMethodObjectId,
41 bool allow_system_table_mods,
45 extern void index_drop(Oid indexId);
47 extern IndexInfo *BuildIndexInfo(Relation index);
49 extern void FormIndexDatum(IndexInfo *indexInfo,
55 extern void setNewRelfilenode(Relation relation);
57 extern void index_build(Relation heapRelation,
58 Relation indexRelation,
62 extern double IndexBuildHeapScan(Relation heapRelation,
63 Relation indexRelation,
65 IndexBuildCallback callback,
66 void *callback_state);
68 extern void validate_index(Oid heapId, Oid indexId, Snapshot snapshot);
70 extern void reindex_index(Oid indexId);
71 extern bool reindex_relation(Oid relid, bool toast_too);