1996-07-09 08:22:35 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
1999-02-14 00:22:53 +01:00
|
|
|
* plancat.h
|
1997-09-07 07:04:48 +02:00
|
|
|
* prototypes for plancat.c.
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
|
|
|
*
|
2001-01-24 20:43:33 +01:00
|
|
|
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
2000-01-26 06:58:53 +01:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
2001-05-20 22:28:20 +02:00
|
|
|
* $Id: plancat.h,v 1.23 2001/05/20 20:28:20 tgl Exp $
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef PLANCAT_H
|
|
|
|
#define PLANCAT_H
|
|
|
|
|
2000-01-09 01:26:47 +01:00
|
|
|
#include "nodes/relation.h"
|
1996-07-09 08:22:35 +02:00
|
|
|
|
1999-11-22 00:25:47 +01:00
|
|
|
|
2001-05-20 22:28:20 +02:00
|
|
|
extern void get_relation_info(Oid relationObjectId,
|
2001-03-22 05:01:46 +01:00
|
|
|
bool *hasindex, long *pages, double *tuples);
|
1999-11-22 00:25:47 +01:00
|
|
|
|
2000-09-29 20:21:41 +02:00
|
|
|
extern List *find_secondary_indexes(Oid relationObjectId);
|
1996-07-09 08:22:35 +02:00
|
|
|
|
2000-01-09 01:26:47 +01:00
|
|
|
extern List *find_inheritance_children(Oid inhparent);
|
|
|
|
|
2000-06-09 05:17:13 +02:00
|
|
|
extern bool has_subclass(Oid relationId);
|
|
|
|
|
2001-05-20 22:28:20 +02:00
|
|
|
extern bool has_unique_index(RelOptInfo *rel, AttrNumber attno);
|
1996-07-09 08:22:35 +02:00
|
|
|
|
2001-05-20 22:28:20 +02:00
|
|
|
extern Selectivity restriction_selectivity(Query *root,
|
|
|
|
Oid operator,
|
|
|
|
List *args,
|
|
|
|
int varRelid);
|
|
|
|
|
|
|
|
extern Selectivity join_selectivity(Query *root,
|
|
|
|
Oid operator,
|
|
|
|
List *args);
|
1996-07-09 08:22:35 +02:00
|
|
|
|
1998-09-01 06:40:42 +02:00
|
|
|
#endif /* PLANCAT_H */
|