OSDN Git Service

Add:
[pg-rex/syncrep.git] / src / include / optimizer / plancat.h
1 /*-------------------------------------------------------------------------
2  *
3  * plancat.h
4  *        prototypes for plancat.c.
5  *
6  *
7  * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * $Id: plancat.h,v 1.17 2000/01/26 05:58:20 momjian Exp $
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef PLANCAT_H
15 #define PLANCAT_H
16
17 #include "nodes/relation.h"
18
19
20 extern void relation_info(Query *root, Index relid,
21                                                   bool *hasindex, long *pages, double *tuples);
22
23 extern List *find_secondary_indexes(Query *root, Index relid);
24
25 extern List *find_inheritance_children(Oid inhparent);
26
27 extern Selectivity restriction_selectivity(Oid functionObjectId,
28                                                 Oid operatorObjectId,
29                                                 Oid relationObjectId,
30                                                 AttrNumber attributeNumber,
31                                                 Datum constValue,
32                                                 int constFlag);
33
34 extern Selectivity join_selectivity(Oid functionObjectId, Oid operatorObjectId,
35                                  Oid relationObjectId1, AttrNumber attributeNumber1,
36                                  Oid relationObjectId2, AttrNumber attributeNumber2);
37
38 #endif   /* PLANCAT_H */