You can subscribe to this list here.
2010 |
Jan
|
Feb
|
Mar
|
Apr
(4) |
May
(28) |
Jun
(12) |
Jul
(11) |
Aug
(12) |
Sep
(5) |
Oct
(19) |
Nov
(14) |
Dec
(12) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2011 |
Jan
(18) |
Feb
(30) |
Mar
(115) |
Apr
(89) |
May
(50) |
Jun
(44) |
Jul
(22) |
Aug
(13) |
Sep
(11) |
Oct
(30) |
Nov
(28) |
Dec
(39) |
2012 |
Jan
(38) |
Feb
(18) |
Mar
(43) |
Apr
(91) |
May
(108) |
Jun
(46) |
Jul
(37) |
Aug
(44) |
Sep
(33) |
Oct
(29) |
Nov
(36) |
Dec
(15) |
2013 |
Jan
(35) |
Feb
(611) |
Mar
(5) |
Apr
(55) |
May
(30) |
Jun
(28) |
Jul
(458) |
Aug
(34) |
Sep
(9) |
Oct
(39) |
Nov
(22) |
Dec
(32) |
2014 |
Jan
(16) |
Feb
(16) |
Mar
(42) |
Apr
(179) |
May
(7) |
Jun
(6) |
Jul
(9) |
Aug
|
Sep
(4) |
Oct
|
Nov
(3) |
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
(4) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
|
1
|
2
|
3
|
4
|
5
(2) |
6
(2) |
7
|
8
(2) |
9
|
10
|
11
(1) |
12
(1) |
13
|
14
(2) |
15
(2) |
16
|
17
|
18
(1) |
19
|
20
|
21
(2) |
22
|
23
|
24
|
25
(1) |
26
|
27
(2) |
28
(2) |
29
(2) |
30
|
31
|
|
|
|
|
|
|
From: Michael P. <mic...@us...> - 2011-07-12 00:07:32
|
Project "Postgres-XC". The branch, master has been updated via f0f4ae5fddf646b1a41dd4d512fccdf9c9587254 (commit) from 7fea05bf15f8f214c2ffffd72d80ae4912af4ad6 (commit) - Log ----------------------------------------------------------------- commit f0f4ae5fddf646b1a41dd4d512fccdf9c9587254 Author: Michael P <mic...@us...> Date: Tue Jul 12 09:07:41 2011 +0900 Fix for WHERE planning when analyzing forwign quals Now the analysis of foreign quals is limited to WHERE clauses. This was causing errors with DBT-1 for queries like that: UPDATE table SET column1 = now() WHERE column2 > 1; by causing an UPDATE trying to occur on local Coordinator. diff --git a/src/backend/pgxc/plan/planner.c b/src/backend/pgxc/plan/planner.c index 098f8c9..f2ee26f 100644 --- a/src/backend/pgxc/plan/planner.c +++ b/src/backend/pgxc/plan/planner.c @@ -1239,12 +1239,6 @@ examine_conditions_walker(Node *expr_node, XCWalkerContext *context) */ return false; } - else - { - /* Check if this node can be pushed down. */ - if (!is_foreign_qual((Node *) arg2)) - return true; - } /* * Check if it is an expression like pcol = expr, where pcol is @@ -1274,22 +1268,9 @@ examine_conditions_walker(Node *expr_node, XCWalkerContext *context) return false; } } - else - { - /* Check if this node can be pushed down. */ - if (!is_foreign_qual((Node *) arg2)) - return true; - } } } - /* See if the function is immutable, otherwise give up */ - if (IsA(expr_node, FuncExpr)) - { - if (!is_foreign_qual((Node *) expr_node)) - return true; - } - /* Handle subquery */ if (IsA(expr_node, SubLink)) { @@ -1660,7 +1641,8 @@ get_plan_nodes_walker(Node *query_node, XCWalkerContext *context) } /* Examine the WHERE clause, too */ - if (examine_conditions_walker(query->jointree->quals, context)) + if (examine_conditions_walker(query->jointree->quals, context) || + !is_foreign_qual(query->jointree->quals)) return true; if (context->query_step->exec_nodes) ----------------------------------------------------------------------- Summary of changes: src/backend/pgxc/plan/planner.c | 22 ++-------------------- 1 files changed, 2 insertions(+), 20 deletions(-) hooks/post-receive -- Postgres-XC |