Fix set_append_rel_pathlist() to deal intelligently with cases where
[PostgreSQL.git] / src / include / parser / parse_agg.h
blob4839d4aa821e0319bf6497b7a0e96226475ec158
1 /*-------------------------------------------------------------------------
3 * parse_agg.h
4 * handle aggregates and window functions in parser
6 * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
9 * $PostgreSQL$
11 *-------------------------------------------------------------------------
13 #ifndef PARSE_AGG_H
14 #define PARSE_AGG_H
16 #include "parser/parse_node.h"
18 extern void transformAggregateCall(ParseState *pstate, Aggref *agg);
19 extern void transformWindowFuncCall(ParseState *pstate, WindowFunc *wfunc,
20 WindowDef *windef);
22 extern void parseCheckAggregates(ParseState *pstate, Query *qry);
23 extern void parseCheckWindowFuncs(ParseState *pstate, Query *qry);
25 extern void build_aggregate_fnexprs(Oid *agg_input_types,
26 int agg_num_inputs,
27 Oid agg_state_type,
28 Oid agg_result_type,
29 Oid transfn_oid,
30 Oid finalfn_oid,
31 Expr **transfnexpr,
32 Expr **finalfnexpr);
34 #endif /* PARSE_AGG_H */