1 /*-------------------------------------------------------------------------
4 * prototypes for files in prep.c
7 * Copyright (c) 1994, Regents of the University of California
9 * $Id: prep.h,v 1.1 1996/08/28 07:23:27 scrappy Exp $
11 *-------------------------------------------------------------------------
16 #include "nodes/primnodes.h"
17 #include "nodes/plannodes.h"
20 * prototypes for archive.h
22 extern void plan_archive(List *rt);
23 extern List *find_archive_rels(Oid relid);
26 * prototypes for prepqual.h
28 extern List *preprocess_qualification(Expr *qual, List *tlist,
29 List **existentialQualPtr);
30 extern List *cnfify(Expr *qual, bool removeAndFlag);
33 * prototypes for preptlist.h
35 extern List *preprocess_targetlist(List *tlist, int command_type,
36 Index result_relation, List *range_table);
39 * prototypes for prepunion.h
41 typedef enum UnionFlag {
42 INHERITS_FLAG, ARCHIVE_FLAG, VERSION_FLAG
45 extern List *find_all_inheritors(List *unexamined_relids,
46 List *examined_relids);
47 extern int first_matching_rt_entry(List *rangetable, UnionFlag flag);
48 extern Append *plan_union_queries(Index rt_index, Query *parse,