1 /*-------------------------------------------------------------------------
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
12 *-------------------------------------------------------------------------
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
,
31 extern TargetEntry
*get_sortgroupclause_tle(SortGroupClause
*sgClause
,
33 extern Node
*get_sortgroupclause_expr(SortGroupClause
*sgClause
,
35 extern List
*get_sortgrouplist_exprs(List
*sgClauses
,
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
);