QUERY PLAN
----------------------------------------------------------------
Remote Fast Query Execution
- Output: 1000, tab1_rr.xc_node_id, tab1_rr.ctid
+ Output: 1000
Remote query: UPDATE tab1_rr SET val2 = 1000 WHERE (val = 7)
-> Update on public.tab1_rr
-> Seq Scan on public.tab1_rr
QUERY PLAN
-----------------------------------------------------
Remote Fast Query Execution
- Output: tab1_rr.xc_node_id, tab1_rr.ctid
Node/s: datanode_1, datanode_2
Remote query: DELETE FROM tab1_rr WHERE (val = 7)
-> Delete on public.tab1_rr
-> Seq Scan on public.tab1_rr
Output: ctid
Filter: (tab1_rr.val = 7)
-(8 rows)
+(7 rows)
select * from tab1_rr where val = 7;
val | val2
QUERY PLAN
------------------------------------------------------------------
Remote Fast Query Execution
- Output: 1000, tab1_hash.xc_node_id, tab1_hash.ctid
+ Output: 1000
Remote query: UPDATE tab1_hash SET val2 = 1000 WHERE (val = 7)
-> Update on public.tab1_hash
-> Seq Scan on public.tab1_hash
QUERY PLAN
-------------------------------------------------------
Remote Fast Query Execution
- Output: tab1_hash.xc_node_id, tab1_hash.ctid
Node/s: datanode_2
Remote query: DELETE FROM tab1_hash WHERE (val = 7)
-> Delete on public.tab1_hash
-> Seq Scan on public.tab1_hash
Output: ctid
Filter: (tab1_hash.val = 7)
-(8 rows)
+(7 rows)
select * from tab1_hash where val = 7;
val | val2
QUERY PLAN
--------------------------------------------------------------------
Remote Fast Query Execution
- Output: 1000, tab1_modulo.xc_node_id, tab1_modulo.ctid
+ Output: 1000
Remote query: UPDATE tab1_modulo SET val2 = 1000 WHERE (val = 7)
-> Update on public.tab1_modulo
-> Seq Scan on public.tab1_modulo
QUERY PLAN
---------------------------------------------------------
Remote Fast Query Execution
- Output: tab1_modulo.xc_node_id, tab1_modulo.ctid
Node/s: datanode_2
Remote query: DELETE FROM tab1_modulo WHERE (val = 7)
-> Delete on public.tab1_modulo
-> Seq Scan on public.tab1_modulo
Output: ctid
Filter: (tab1_modulo.val = 7)
-(8 rows)
+(7 rows)
select * from tab1_modulo where val = 7;
val | val2
QUERY PLAN
------------------------------------------------------------------------
Remote Fast Query Execution
- Output: 1000, tab1_replicated.ctid
+ Output: 1000
Remote query: UPDATE tab1_replicated SET val2 = 1000 WHERE (val = 7)
-> Update on public.tab1_replicated
-> Seq Scan on public.tab1_replicated
QUERY PLAN
-------------------------------------------------------------
Remote Fast Query Execution
- Output: tab1_replicated.ctid
Node/s: datanode_1, datanode_2
Remote query: DELETE FROM tab1_replicated WHERE (val = 7)
-> Delete on public.tab1_replicated
-> Seq Scan on public.tab1_replicated
Output: ctid
Filter: (tab1_replicated.val = 7)
-(8 rows)
+(7 rows)
select * from tab1_replicated where val = 7;
val | val2
QUERY PLAN
---------------------------------------------------------------------------
Remote Fast Query Execution (cost=0.00..0.00 rows=0 width=0)
- Output: 2, xl_pp.xc_node_id, xl_pp.ctid
+ Output: 2
Node/s: datanode_1
Remote query: UPDATE xl_pp SET b = 2 WHERE (a = 200)
-> Update on public.xl_pp (cost=0.00..35.50 rows=10 width=18)
QUERY PLAN
---------------------------------------------------------------------------
Remote Fast Query Execution (cost=0.00..0.00 rows=0 width=0)
- Output: 2, xl_pp.xc_node_id, xl_pp.ctid
+ Output: 2
Node/s: datanode_1
Remote query: UPDATE xl_pp SET b = 2 WHERE (a = (200)::bigint)
-> Update on public.xl_pp (cost=0.00..35.50 rows=10 width=18)
QUERY PLAN
--------------------------------------------------------------------------
Remote Fast Query Execution (cost=0.00..0.00 rows=0 width=0)
- Output: xl_pp.xc_node_id, xl_pp.ctid
Node/s: datanode_1
Remote query: DELETE FROM xl_pp WHERE (a = 200)
-> Delete on public.xl_pp (cost=0.00..35.50 rows=10 width=6)
-> Seq Scan on public.xl_pp (cost=0.00..35.50 rows=10 width=6)
Output: ctid
Filter: (xl_pp.a = 200)
-(8 rows)
+(7 rows)
SELECT * from xl_pp where a=200;
a | b
QUERY PLAN
--------------------------------------------------------------------------
Remote Fast Query Execution (cost=0.00..0.00 rows=0 width=0)
- Output: xl_pp.xc_node_id, xl_pp.ctid
Node/s: datanode_1
Remote query: DELETE FROM xl_pp WHERE (a = 200)
-> Delete on public.xl_pp (cost=0.00..35.50 rows=10 width=6)
-> Seq Scan on public.xl_pp (cost=0.00..35.50 rows=10 width=6)
Output: ctid
Filter: (xl_pp.a = 200)
-(8 rows)
+(7 rows)
EXPLAIN VERBOSE DELETE FROM xl_pp where a=200::bigint;
QUERY PLAN
--------------------------------------------------------------------------
Remote Fast Query Execution (cost=0.00..0.00 rows=0 width=0)
- Output: xl_pp.xc_node_id, xl_pp.ctid
Node/s: datanode_1
Remote query: DELETE FROM xl_pp WHERE (a = (200)::bigint)
-> Delete on public.xl_pp (cost=0.00..35.50 rows=10 width=6)
-> Seq Scan on public.xl_pp (cost=0.00..35.50 rows=10 width=6)
Output: ctid
Filter: (xl_pp.a = '200'::bigint)
-(8 rows)
+(7 rows)
--Testing with MODULO distribution
CREATE TABLE xl_ppm (a INT2, b int) DISTRIBUTE BY MODULO(a);
QUERY PLAN
----------------------------------------------------------------------------
Remote Fast Query Execution (cost=0.00..0.00 rows=0 width=0)
- Output: 2, xl_ppm.xc_node_id, xl_ppm.ctid
+ Output: 2
Node/s: datanode_1
Remote query: UPDATE xl_ppm SET b = 2 WHERE (a = 200)
-> Update on public.xl_ppm (cost=0.00..40.00 rows=12 width=12)
QUERY PLAN
----------------------------------------------------------------------------
Remote Fast Query Execution (cost=0.00..0.00 rows=0 width=0)
- Output: 2, xl_ppm.xc_node_id, xl_ppm.ctid
+ Output: 2
Node/s: datanode_1
Remote query: UPDATE xl_ppm SET b = 2 WHERE (a = (200)::smallint)
-> Update on public.xl_ppm (cost=0.00..40.00 rows=12 width=12)
QUERY PLAN
---------------------------------------------------------------------------
Remote Fast Query Execution (cost=0.00..0.00 rows=0 width=0)
- Output: xl_ppm.xc_node_id, xl_ppm.ctid
Node/s: datanode_1
Remote query: DELETE FROM xl_ppm WHERE (a = 200)
-> Delete on public.xl_ppm (cost=0.00..40.00 rows=12 width=6)
-> Seq Scan on public.xl_ppm (cost=0.00..40.00 rows=12 width=6)
Output: ctid
Filter: (xl_ppm.a = 200)
-(8 rows)
+(7 rows)
SELECT * from xl_ppm where a=200;
a | b
QUERY PLAN
---------------------------------------------------------------------------
Remote Fast Query Execution (cost=0.00..0.00 rows=0 width=0)
- Output: xl_ppm.xc_node_id, xl_ppm.ctid
Node/s: datanode_1
Remote query: DELETE FROM xl_ppm WHERE (a = 200)
-> Delete on public.xl_ppm (cost=0.00..40.00 rows=12 width=6)
-> Seq Scan on public.xl_ppm (cost=0.00..40.00 rows=12 width=6)
Output: ctid
Filter: (xl_ppm.a = 200)
-(8 rows)
+(7 rows)
EXPLAIN VERBOSE DELETE FROM xl_ppm where a=200::INT2;
QUERY PLAN
---------------------------------------------------------------------------
Remote Fast Query Execution (cost=0.00..0.00 rows=0 width=0)
- Output: xl_ppm.xc_node_id, xl_ppm.ctid
Node/s: datanode_1
Remote query: DELETE FROM xl_ppm WHERE (a = (200)::smallint)
-> Delete on public.xl_ppm (cost=0.00..40.00 rows=12 width=6)
-> Seq Scan on public.xl_ppm (cost=0.00..40.00 rows=12 width=6)
Output: ctid
Filter: (xl_ppm.a = '200'::smallint)
-(8 rows)
+(7 rows)
DROP TABLE xl_pp;
DROP TABLE xl_ppm;