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_coerce.h | |
parent | 02b5d8e37195bc2432df37d248566506371f1c81 (diff) | |
download | postgresql-e3b1b6c0cdc1ceda26053573af1da4f35ee8566d.tar.gz postgresql-e3b1b6c0cdc1ceda26053573af1da4f35ee8566d.zip |
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_coerce.h')
-rw-r--r-- | src/include/parser/parse_coerce.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/parser/parse_coerce.h b/src/include/parser/parse_coerce.h index de2ea95db85..5facbc7d7d4 100644 --- a/src/include/parser/parse_coerce.h +++ b/src/include/parser/parse_coerce.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: parse_coerce.h,v 1.51 2003/04/29 22:13:11 tgl Exp $ + * $Id: parse_coerce.h,v 1.52 2003/07/01 19:10:53 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -67,6 +67,9 @@ extern Oid enforce_generic_type_consistency(Oid *actual_arg_types, Oid *declared_arg_types, int nargs, Oid rettype); +extern Oid resolve_generic_type(Oid declared_type, + Oid context_actual_type, + Oid context_declared_type); extern bool find_coercion_pathway(Oid targetTypeId, Oid sourceTypeId, CoercionContext ccontext, |