1996-07-09 02:22:35 -04:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
|
*
|
1999-02-13 18:22:53 -05:00
|
|
|
* prep.h
|
1999-09-12 14:08:17 -04:00
|
|
|
* prototypes for files in optimizer/prep/
|
1996-07-09 02:22:35 -04:00
|
|
|
*
|
|
|
|
|
*
|
2006-03-05 10:59:11 -05:00
|
|
|
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
|
2000-01-26 00:58:53 -05:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-07-09 02:22:35 -04:00
|
|
|
*
|
2008-11-11 13:13:54 -05:00
|
|
|
* $PostgreSQL: pgsql/src/include/optimizer/prep.h,v 1.57.2.1 2008/11/11 18:13:54 tgl Exp $
|
1996-07-09 02:22:35 -04:00
|
|
|
*
|
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
#ifndef PREP_H
|
1997-09-07 01:04:48 -04:00
|
|
|
#define PREP_H
|
1996-07-09 02:22:35 -04:00
|
|
|
|
1999-07-16 13:07:40 -04:00
|
|
|
#include "nodes/plannodes.h"
|
2003-02-08 15:20:55 -05:00
|
|
|
#include "nodes/relation.h"
|
|
|
|
|
|
1996-07-09 02:22:35 -04:00
|
|
|
|
2003-01-20 13:55:07 -05:00
|
|
|
/*
|
|
|
|
|
* prototypes for prepjointree.c
|
|
|
|
|
*/
|
2005-06-05 18:32:58 -04:00
|
|
|
extern Node *pull_up_IN_clauses(PlannerInfo *root, Node *node);
|
|
|
|
|
extern Node *pull_up_subqueries(PlannerInfo *root, Node *jtnode,
|
2006-02-03 16:08:49 -05:00
|
|
|
bool below_outer_join, bool append_rel_member);
|
2005-06-05 18:32:58 -04:00
|
|
|
extern void reduce_outer_joins(PlannerInfo *root);
|
2003-02-08 15:20:55 -05:00
|
|
|
extern Relids get_relids_in_jointree(Node *jtnode);
|
2005-06-05 18:32:58 -04:00
|
|
|
extern Relids get_relids_for_join(PlannerInfo *root, int joinrelid);
|
2003-01-20 13:55:07 -05:00
|
|
|
|
1996-07-09 02:22:35 -04:00
|
|
|
/*
|
1999-06-06 13:38:11 -04:00
|
|
|
* prototypes for prepqual.c
|
1996-07-09 02:22:35 -04:00
|
|
|
*/
|
2003-12-28 16:57:37 -05:00
|
|
|
extern Expr *canonicalize_qual(Expr *qual);
|
1996-07-09 02:22:35 -04:00
|
|
|
|
|
|
|
|
/*
|
1999-06-06 13:38:11 -04:00
|
|
|
* prototypes for preptlist.c
|
1996-07-09 02:22:35 -04:00
|
|
|
*/
|
2005-06-05 18:32:58 -04:00
|
|
|
extern List *preprocess_targetlist(PlannerInfo *root, List *tlist);
|
1996-07-09 02:22:35 -04:00
|
|
|
|
1999-06-06 13:38:11 -04:00
|
|
|
/*
|
|
|
|
|
* prototypes for prepunion.c
|
|
|
|
|
*/
|
2005-06-09 22:21:05 -04:00
|
|
|
extern Plan *plan_set_operations(PlannerInfo *root, double tuple_fraction,
|
2005-10-14 22:49:52 -04:00
|
|
|
List **sortClauses);
|
2000-11-11 19:37:02 -05:00
|
|
|
|
1999-12-13 22:35:28 -05:00
|
|
|
extern List *find_all_inheritors(Oid parentrel);
|
2001-05-20 16:28:20 -04:00
|
|
|
|
2006-01-31 16:39:25 -05:00
|
|
|
extern void expand_inherited_tables(PlannerInfo *root);
|
2000-11-11 19:37:02 -05:00
|
|
|
|
2006-01-31 16:39:25 -05:00
|
|
|
extern Node *adjust_appendrel_attrs(Node *node, AppendRelInfo *appinfo);
|
|
|
|
|
|
2001-11-05 12:46:40 -05:00
|
|
|
#endif /* PREP_H */
|