mirror of
https://github.com/postgres/postgres.git
synced 2025-06-27 23:21:58 +03:00
As someone asked for this feature - patch for 1.09 follows.
Now You can do queries like select sum(some_func(x)) from ... select min(table1.x + table2.y) from table1, table2 where ... and so on. Vadim
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/clauses.c,v 1.4 1996/11/06 09:29:22 scrappy Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/clauses.c,v 1.5 1996/11/30 17:48:52 momjian Exp $
|
||||
*
|
||||
* HISTORY
|
||||
* AUTHOR DATE MAJOR EVENT
|
||||
@ -521,6 +521,9 @@ fix_opid(Node *clause)
|
||||
fix_opid((Node*)get_leftop((Expr*)clause));
|
||||
fix_opid((Node*)get_rightop((Expr*)clause));
|
||||
}
|
||||
else if (agg_clause (clause)) {
|
||||
fix_opid (((Aggreg*)clause)->target);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user