]> granicus.if.org Git - postgresql/commit
Secondly, small problem when trying to create a MAX/MIN aggregate in 1.09.
authorMarc G. Fournier <scrappy@hub.org>
Fri, 8 Nov 1996 01:08:37 +0000 (01:08 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Fri, 8 Nov 1996 01:08:37 +0000 (01:08 +0000)
commit026387013e6a6e924889216f5524b2ddd942ca20
tree9d7513f1c3d7aebe55059dae9de3d6df6c0d6483
parentad6ca0c3af75cdbae0cdae6c6d9f19d21e457897
Secondly, small problem when trying to create a MAX/MIN aggregate in 1.09.

>From the create_aggregate man page...

"The arguments to state-transition-function-1 must be
(stype1,basetype), and its return value must be stype1."

create aggregate MIN (sfunc1 = int2smaller,
                      basetype = int2,
                      stype1 = int2);

will fail becase int2smaller and int2larger are in pg_proc
as returning an int4.  Can't happen since both args have to
be int2.

From: Darren King <aixssd!ceodev!darrenk@abs.net>
src/include/catalog/pg_proc.h