From bec98a31c55a4f799b398d01541e68d7c086bb81 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 17 Jul 2000 03:05:41 +0000 Subject: Revise aggregate functions per earlier discussions in pghackers. There's now only one transition value and transition function. NULL handling in aggregates is a lot cleaner. Also, use Numeric accumulators instead of integer accumulators for sum/avg on integer datatypes --- this avoids overflow at the cost of being a little slower. Implement VARIANCE() and STDDEV() aggregates in the standard backend. Also, enable new LIKE selectivity estimators by default. Unrelated change, but as long as I had to force initdb anyway... --- src/include/nodes/primnodes.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/include/nodes') diff --git a/src/include/nodes/primnodes.h b/src/include/nodes/primnodes.h index 6f675873cc8..2cf59ca50c2 100644 --- a/src/include/nodes/primnodes.h +++ b/src/include/nodes/primnodes.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: primnodes.h,v 1.43 2000/06/12 19:40:49 momjian Exp $ + * $Id: primnodes.h,v 1.44 2000/07/17 03:05:27 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -301,10 +301,9 @@ typedef struct Iter * basetype - base type Oid of the aggregate (ie, input type) * aggtype - type Oid of final result of the aggregate * target - attribute or expression we are aggregating on - * usenulls - TRUE to accept null values as inputs * aggstar - TRUE if argument was really '*' - * aggdistinct - TRUE if arguments were labeled DISTINCT - * aggno - workspace for nodeAgg.c executor + * aggdistinct - TRUE if it's agg(DISTINCT ...) + * aggno - workspace for executor (see nodeAgg.c) * ---------------- */ typedef struct Aggref @@ -314,7 +313,6 @@ typedef struct Aggref Oid basetype; Oid aggtype; Node *target; - bool usenulls; bool aggstar; bool aggdistinct; int aggno; -- cgit v1.2.3