1
/*-------------------------------------------------------------------------
4
* prototypes for index.c.
7
* Portions Copyright (c) 1996-2005, 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.59 2004-12-31 22:03:24 pgsql 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,
36
Oid accessMethodObjectId,
41
bool allow_system_table_mods,
44
extern void index_drop(Oid indexId);
46
extern IndexInfo *BuildIndexInfo(Relation index);
48
extern void FormIndexDatum(IndexInfo *indexInfo,
50
TupleDesc heapDescriptor,
55
extern void UpdateStats(Oid relid, double reltuples);
57
extern void setRelhasindex(Oid relid, bool hasindex,
58
bool isprimary, Oid reltoastidxid);
60
extern void setNewRelfilenode(Relation relation);
62
extern void index_build(Relation heapRelation, Relation indexRelation,
63
IndexInfo *indexInfo);
65
extern double IndexBuildHeapScan(Relation heapRelation,
66
Relation indexRelation,
68
IndexBuildCallback callback,
69
void *callback_state);
71
extern void reindex_index(Oid indexId);
72
extern bool reindex_relation(Oid relid, bool toast_too);