diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-07-01 19:10:53 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-07-01 19:10:53 +0000 |
| commit | e3b1b6c0cdc1ceda26053573af1da4f35ee8566d (patch) | |
| tree | 9a4c13b8dde0b73cc78b418ba6beee6ef2ebc01a /src/include/parser/parse_agg.h | |
| parent | 02b5d8e37195bc2432df37d248566506371f1c81 (diff) | |
| download | postgresql-e3b1b6c0cdc1ceda26053573af1da4f35ee8566d.tar.gz | |
Aggregates can be polymorphic, using polymorphic implementation functions.
It also works to create a non-polymorphic aggregate from polymorphic
functions, should you want to do that. Regression test added, docs still
lacking. By Joe Conway, with some kibitzing from Tom Lane.
Diffstat (limited to 'src/include/parser/parse_agg.h')
| -rw-r--r-- | src/include/parser/parse_agg.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/include/parser/parse_agg.h b/src/include/parser/parse_agg.h index bc1e601cc2..79f226fb89 100644 --- a/src/include/parser/parse_agg.h +++ b/src/include/parser/parse_agg.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: parse_agg.h,v 1.26 2003/06/06 15:04:03 tgl Exp $ + * $Id: parse_agg.h,v 1.27 2003/07/01 19:10:53 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -19,4 +19,12 @@ extern void transformAggregateCall(ParseState *pstate, Aggref *agg); extern void parseCheckAggregates(ParseState *pstate, Query *qry); +extern void build_aggregate_fnexprs(Oid agg_input_type, + Oid agg_state_type, + Oid agg_result_type, + Oid transfn_oid, + Oid finalfn_oid, + Expr **transfnexpr, + Expr **finalfnexpr); + #endif /* PARSE_AGG_H */ |
