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
|
|
|
*
|
|
|
|
*
|
2002-06-20 22:29:54 +02:00
|
|
|
* Portions Copyright (c) 1996-2002, 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
|
|
|
*
|
2003-06-30 01:05:05 +02:00
|
|
|
* $Id: plancat.h,v 1.30 2003/06/29 23:05:05 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
|
|
|
|
2003-02-03 16:07:08 +01:00
|
|
|
extern void get_relation_info(Oid relationObjectId, RelOptInfo *rel);
|
1996-07-09 08:22:35 +02:00
|
|
|
|
2003-06-30 01:05:05 +02:00
|
|
|
extern List *build_physical_tlist(Query *root, RelOptInfo *rel);
|
|
|
|
|
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,
|
2001-10-25 07:50:21 +02:00
|
|
|
Oid operator,
|
|
|
|
List *args,
|
|
|
|
int varRelid);
|
2001-05-20 22:28:20 +02:00
|
|
|
|
|
|
|
extern Selectivity join_selectivity(Query *root,
|
2003-01-28 23:13:41 +01:00
|
|
|
Oid operator,
|
|
|
|
List *args,
|
|
|
|
JoinType jointype);
|
2001-10-28 07:26:15 +01:00
|
|
|
|
2001-11-05 18:46:40 +01:00
|
|
|
#endif /* PLANCAT_H */
|