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-03-22 05:01:46 +01:00
|
|
|
* $Id: plancat.h,v 1.22 2001/03/22 04:00:55 momjian 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
|
|
|
|
2000-09-29 20:21:41 +02:00
|
|
|
extern void 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);
|
|
|
|
|
2000-01-09 01:26:47 +01:00
|
|
|
extern Selectivity restriction_selectivity(Oid functionObjectId,
|
1997-09-07 07:04:48 +02:00
|
|
|
Oid operatorObjectId,
|
|
|
|
Oid relationObjectId,
|
|
|
|
AttrNumber attributeNumber,
|
1999-07-26 01:07:26 +02:00
|
|
|
Datum constValue,
|
|
|
|
int constFlag);
|
1996-07-09 08:22:35 +02:00
|
|
|
|
2000-01-09 01:26:47 +01:00
|
|
|
extern Selectivity join_selectivity(Oid functionObjectId, Oid operatorObjectId,
|
1997-09-07 07:04:48 +02:00
|
|
|
Oid relationObjectId1, AttrNumber attributeNumber1,
|
|
|
|
Oid relationObjectId2, AttrNumber attributeNumber2);
|
1996-07-09 08:22:35 +02:00
|
|
|
|
1998-09-01 06:40:42 +02:00
|
|
|
#endif /* PLANCAT_H */
|