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
|
|
|
*
|
|
|
|
|
*
|
2001-01-24 14:43:33 -05:00
|
|
|
* Portions Copyright (c) 1996-2001, 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
|
|
|
*
|
2001-03-21 23:01:46 -05:00
|
|
|
* $Id: prep.h,v 1.27 2001/03/22 04:00:55 momjian 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-15 19:04:24 -04:00
|
|
|
#include "nodes/parsenodes.h"
|
1999-07-16 13:07:40 -04:00
|
|
|
#include "nodes/plannodes.h"
|
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
|
|
|
*/
|
1999-09-12 20:17:25 -04:00
|
|
|
extern List *canonicalize_qual(Expr *qual, bool removeAndFlag);
|
1997-09-08 17:56:23 -04:00
|
|
|
extern List *cnfify(Expr *qual, bool removeAndFlag);
|
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
|
|
|
*/
|
1998-09-01 00:40:42 -04:00
|
|
|
extern List *preprocess_targetlist(List *tlist, int command_type,
|
1997-09-08 17:56:23 -04:00
|
|
|
Index result_relation, List *range_table);
|
1996-07-09 02:22:35 -04:00
|
|
|
|
1999-06-06 13:38:11 -04:00
|
|
|
/*
|
|
|
|
|
* prototypes for prepunion.c
|
|
|
|
|
*/
|
2000-10-05 15:11:39 -04:00
|
|
|
extern Plan *plan_set_operations(Query *parse);
|
2000-11-11 19:37:02 -05:00
|
|
|
|
1999-12-13 22:35:28 -05:00
|
|
|
extern List *find_all_inheritors(Oid parentrel);
|
2000-11-11 19:37:02 -05:00
|
|
|
extern List *expand_inherted_rtentry(Query *parse, Index rti);
|
|
|
|
|
|
|
|
|
|
extern Node *adjust_inherited_attrs(Node *node,
|
2001-03-21 23:01:46 -05:00
|
|
|
Index old_rt_index, Oid old_relid,
|
|
|
|
|
Index new_rt_index, Oid new_relid);
|
1996-07-09 02:22:35 -04:00
|
|
|
|
1998-09-01 00:40:42 -04:00
|
|
|
#endif /* PREP_H */
|