Fix obsolete comment regarding FSM truncation.
[PostgreSQL.git] / src / include / optimizer / tlist.h
blobee77209fd53875b1b3b0a878a385c35d5e07f408
1 /*-------------------------------------------------------------------------
3 * tlist.h
4 * prototypes for tlist.c.
7 * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * $PostgreSQL$
12 *-------------------------------------------------------------------------
14 #ifndef TLIST_H
15 #define TLIST_H
17 #include "nodes/relation.h"
20 extern TargetEntry *tlist_member(Node *node, List *targetlist);
21 extern TargetEntry *tlist_member_ignore_relabel(Node *node, List *targetlist);
23 extern List *flatten_tlist(List *tlist);
24 extern List *add_to_flat_tlist(List *tlist, List *vars);
26 extern List *get_tlist_exprs(List *tlist, bool includeJunk);
27 extern bool tlist_same_datatypes(List *tlist, List *colTypes, bool junkOK);
29 extern TargetEntry *get_sortgroupref_tle(Index sortref,
30 List *targetList);
31 extern TargetEntry *get_sortgroupclause_tle(SortGroupClause *sgClause,
32 List *targetList);
33 extern Node *get_sortgroupclause_expr(SortGroupClause *sgClause,
34 List *targetList);
35 extern List *get_sortgrouplist_exprs(List *sgClauses,
36 List *targetList);
38 extern Oid *extract_grouping_ops(List *groupClause);
39 extern AttrNumber *extract_grouping_cols(List *groupClause, List *tlist);
40 extern bool grouping_is_sortable(List *groupClause);
41 extern bool grouping_is_hashable(List *groupClause);
43 #endif /* TLIST_H */