From: Michael P. <mic...@us...> - 2011-07-21 06:10:24
|
Project "Postgres-XC". The branch, REL0_9_5_STABLE has been updated via c2d6ca92c3ee26eddbddb79d0c7fbab9f960c884 (commit) from 9c9346e33d899a9aaebaa1e1a6d5f79bb1d8d49d (commit) - Log ----------------------------------------------------------------- http://postgres-xc.git.sourceforge.net/git/gitweb.cgi?p=postgres-xc/postgres-xc;a=commit;h=c2d6ca92c3ee26eddbddb79d0c7fbab9f960c884 commit 0b8135db11723d586033bf45de94705003ef2bf6 Author: Ashutosh Bapat <ash...@en...> Date: Mon Jul 18 17:42:25 2011 +0530 If the havingQuals in query contain aggregates, the aggregates and the VARs not included in the expression trees rooted in those aggregates are included in the targetlist to be pushed to the data node. The aggregates are finalised at the coordinator and havingQual is evaluated. The same technique is used to push aggregates and VARs involved in the expressions in the targetlist to the data nodes. With this patch, we apply the grouping optimizations to the queries containing having clause. M src/backend/optimizer/plan/createplan.c M src/backend/pgxc/plan/planner.c M src/backend/pgxc/pool/postgresql_fdw.c M src/include/pgxc/postgresql_fdw.h M src/test/regress/expected/xc_groupby.out M src/test/regress/expected/xc_having.out ----------------------------------------------------------------------- Summary of changes: src/backend/pgxc/locator/locator.c | 54 +++++++++++++++++++++++++++++++++-- 1 files changed, 50 insertions(+), 4 deletions(-) hooks/post-receive -- Postgres-XC |