OSDN Git Service

Another round of planner/optimizer work. This is just restructuring and
[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.15 2000/01/09 00:26:47 tgl Exp $
10  *
11  *-------------------------------------------------------------------------
12  */
13 #ifndef PLANCAT_H
14 #define PLANCAT_H
15
16 #include "nodes/relation.h"
17
18
19 extern void relation_info(Query *root, Index relid,
20                                                   bool *hasindex, long *pages, double *tuples);
21
22 extern List *find_secondary_indexes(Query *root, Index relid);
23
24 extern List *find_inheritance_children(Oid inhparent);
25
26 extern Selectivity restriction_selectivity(Oid functionObjectId,
27                                                 Oid operatorObjectId,
28                                                 Oid relationObjectId,
29                                                 AttrNumber attributeNumber,
30                                                 Datum constValue,
31                                                 int constFlag);
32
33 extern void index_selectivity(Query *root, RelOptInfo *rel,
34                                                           IndexOptInfo *index, List *indexquals,
35                                                           long *idxPages, Selectivity *idxSelec);
36
37 extern Selectivity join_selectivity(Oid functionObjectId, Oid operatorObjectId,
38                                  Oid relationObjectId1, AttrNumber attributeNumber1,
39                                  Oid relationObjectId2, AttrNumber attributeNumber2);
40
41 #endif   /* PLANCAT_H */