diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 1999-12-13 01:27:21 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 1999-12-13 01:27:21 +0000 |
| commit | a8ae19ec3d13452de931736126d0786a148ee643 (patch) | |
| tree | 3dbdbba249c27b5362865f9ff1c7b2675c136574 /src/include/nodes | |
| parent | efb36d2be8272d03167fe4205b640129ffe583fb (diff) | |
| download | postgresql-a8ae19ec3d13452de931736126d0786a148ee643.tar.gz | |
aggregate(DISTINCT ...) works, per SQL spec.
Note this forces initdb because of change of Aggref node in stored rules.
Diffstat (limited to 'src/include/nodes')
| -rw-r--r-- | src/include/nodes/primnodes.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/include/nodes/primnodes.h b/src/include/nodes/primnodes.h index 2d585bdcc5..d3fb8f732a 100644 --- a/src/include/nodes/primnodes.h +++ b/src/include/nodes/primnodes.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: primnodes.h,v 1.37 1999/11/15 02:00:15 tgl Exp $ + * $Id: primnodes.h,v 1.38 1999/12/13 01:27:10 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -297,10 +297,12 @@ typedef struct Iter /* ---------------- * Aggref * aggname - name of the aggregate - * basetype - base type Oid of the aggregate + * 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 * ---------------- */ @@ -312,6 +314,8 @@ typedef struct Aggref Oid aggtype; Node *target; bool usenulls; + bool aggstar; + bool aggdistinct; int aggno; } Aggref; |
