1 /*-------------------------------------------------------------------------
4 * prototypes for index.c.
7 * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * $Id: index.h,v 1.34 2001/05/07 00:43:24 tgl Exp $
12 *-------------------------------------------------------------------------
17 #include "access/itup.h"
18 #include "nodes/execnodes.h"
20 extern Form_pg_am AccessMethodObjectIdGetForm(Oid accessMethodObjectId,
21 MemoryContext resultCxt);
23 extern void UpdateIndexPredicate(Oid indexoid, Node *oldPred, Node *predicate);
25 extern void InitIndexStrategy(int numatts,
26 Relation indexRelation,
27 Oid accessMethodObjectId);
29 extern void index_create(char *heapRelationName,
30 char *indexRelationName,
32 Oid accessMethodObjectId,
36 bool allow_system_table_mods);
38 extern void index_drop(Oid indexId);
40 extern IndexInfo *BuildIndexInfo(HeapTuple indexTuple);
42 extern void FormIndexDatum(IndexInfo *indexInfo,
44 TupleDesc heapDescriptor,
45 MemoryContext resultCxt,
49 extern void UpdateStats(Oid relid, double reltuples);
50 extern bool IndexesAreActive(Oid relid, bool comfirmCommitted);
51 extern void setRelhasindex(Oid relid, bool hasindex);
53 #ifndef OLD_FILE_NAMING
54 extern void setNewRelfilenode(Relation relation);
56 #endif /* OLD_FILE_NAMING */
57 extern bool SetReindexProcessing(bool processing);
58 extern bool IsReindexProcessing(void);
60 extern void index_build(Relation heapRelation, Relation indexRelation,
61 IndexInfo *indexInfo, Node *oldPred);
63 extern bool reindex_index(Oid indexId, bool force, bool inplace);
64 extern bool activate_indexes_of_a_table(Oid relid, bool activate);
65 extern bool reindex_relation(Oid relid, bool force);