1 /*-------------------------------------------------------------------------
4 * prototypes for plancat.c.
7 * Copyright (c) 1994, Regents of the University of California
9 * $Id: plancat.h,v 1.15 2000/01/09 00:26:47 tgl Exp $
11 *-------------------------------------------------------------------------
16 #include "nodes/relation.h"
19 extern void relation_info(Query *root, Index relid,
20 bool *hasindex, long *pages, double *tuples);
22 extern List *find_secondary_indexes(Query *root, Index relid);
24 extern List *find_inheritance_children(Oid inhparent);
26 extern Selectivity restriction_selectivity(Oid functionObjectId,
29 AttrNumber attributeNumber,
33 extern void index_selectivity(Query *root, RelOptInfo *rel,
34 IndexOptInfo *index, List *indexquals,
35 long *idxPages, Selectivity *idxSelec);
37 extern Selectivity join_selectivity(Oid functionObjectId, Oid operatorObjectId,
38 Oid relationObjectId1, AttrNumber attributeNumber1,
39 Oid relationObjectId2, AttrNumber attributeNumber2);
41 #endif /* PLANCAT_H */