OSDN Git Service

Combine index_info and find_secondary_indexes into a single routine that
[pg-rex/syncrep.git] / src / include / optimizer / plancat.h
1 /*-------------------------------------------------------------------------
2  *
3  * plancat.h
4  *        prototypes for plancat.c.
5  *
6  *
7  * Copyright (c) 1994, Regents of the University of California
8  *
9  * $Id: plancat.h,v 1.14 1999/11/21 23:25:42 tgl Exp $
10  *
11  *-------------------------------------------------------------------------
12  */
13 #ifndef PLANCAT_H
14 #define PLANCAT_H
15
16 #include "nodes/parsenodes.h"
17
18
19 extern void relation_info(Query *root, Index relid,
20                                                   bool *hasindex, int *pages, int *tuples);
21
22 extern List *find_secondary_indexes(Query *root, Index relid);
23
24 extern Cost restriction_selectivity(Oid functionObjectId,
25                                                 Oid operatorObjectId,
26                                                 Oid relationObjectId,
27                                                 AttrNumber attributeNumber,
28                                                 Datum constValue,
29                                                 int constFlag);
30
31 extern void index_selectivity(Query *root, int relid, Oid indexid,
32                                                           List *indexquals,
33                                                           float *idxPages, float *idxSelec);
34
35 extern Cost join_selectivity(Oid functionObjectId, Oid operatorObjectId,
36                                  Oid relationObjectId1, AttrNumber attributeNumber1,
37                                  Oid relationObjectId2, AttrNumber attributeNumber2);
38
39 extern List *find_inheritance_children(Oid inhparent);
40
41 #endif   /* PLANCAT_H */