1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-16 15:02:33 +03:00

Fix for count(*), aggs with views and multiple tables and sum(3).

This commit is contained in:
Bruce Momjian
1998-01-04 04:31:43 +00:00
parent c629d3b9d6
commit 4b05912f0b
15 changed files with 215 additions and 97 deletions

View File

@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: primnodes.h,v 1.11 1997/09/08 21:52:58 momjian Exp $
* $Id: primnodes.h,v 1.12 1998/01/04 04:31:37 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -255,18 +255,19 @@ typedef struct Func
* aggname - name of the aggregate
* basetype - base type Oid of the aggregate
* aggtype - type Oid of final result of the aggregate
* query - XXX comment me
* target - XXX comment me
* target - attribute or expression we are aggregating on
* aggno - index to ecxt_values
* ----------------
*/
typedef struct Aggreg
{
NodeTag type;
char *aggname;
Oid basetype; /* base type of the aggregate */
Oid aggtype; /* type of final result */
Node *target; /* attribute to aggreg on */
int aggno; /* index to ecxt_values */
Oid basetype;
Oid aggtype;
Node *target;
int aggno;
bool usenulls;
} Aggreg;
/* ----------------