OSDN Git Service

Mark functions as static and ifdef NOT_USED as appropriate.
[pg-rex/syncrep.git] / src / include / optimizer / tlist.h
1 /*-------------------------------------------------------------------------
2  *
3  * tlist.h
4  *        prototypes for tlist.c.
5  *
6  *
7  * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * $Id: tlist.h,v 1.26 2000/06/08 22:37:51 momjian Exp $
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef TLIST_H
15 #define TLIST_H
16
17 #include "nodes/relation.h"
18
19 extern Resdom *tlist_member(Node *node, List *targetlist);
20
21 extern void add_var_to_tlist(RelOptInfo *rel, Var *var);
22 extern TargetEntry *create_tl_element(Var *var, int resdomno);
23
24 extern List *new_unsorted_tlist(List *targetlist);
25 extern List *flatten_tlist(List *tlist);
26 extern List *add_to_flat_tlist(List *tlist, List *vars);
27
28 extern Var *get_expr(TargetEntry *tle);
29
30 extern TargetEntry *get_sortgroupclause_tle(SortClause *sortClause,
31                                                 List *targetList);
32 extern Node *get_sortgroupclause_expr(SortClause *sortClause,
33                                                  List *targetList);
34
35 #endif   /* TLIST_H */