---------------------------------------------------------------------------
Remote Subquery Scan on any
-> Insert on base_tbl b
- -> Remote Subquery Scan on all
- Distribute results by R
- -> Result
+ -> Result
SubPlan 1
-> Remote Subquery Scan on all
-> Index Only Scan using ref_tbl_pkey on ref_tbl r
Index Cond: (a = b.a)
-(9 rows)
+(7 rows)
EXPLAIN (costs off, nodes off) UPDATE rw_view1 SET a = a + 5;
QUERY PLAN
-> Remote Subquery Scan on all
-> Index Only Scan using base_tbl_pkey on base_tbl t
Index Cond: (id = 2)
- -> Remote Subquery Scan on all
- Distribute results by R
- -> Result
- One-Time Filter: ($0 IS NOT TRUE)
+ -> Result
+ One-Time Filter: ($0 IS NOT TRUE)
Remote Subquery Scan on any
-> Update on base_tbl
One-Time Filter: $0
-> Index Scan using base_tbl_pkey on base_tbl
Index Cond: (id = 2)
-(21 rows)
+(19 rows)
INSERT INTO rw_view1 VALUES (2, 'New row 2');
SELECT * FROM base_tbl;
ALTER TABLE xc_alter_table_2 DROP COLUMN e;
-- Check for query generation of remote INSERT
EXPLAIN (VERBOSE true, COSTS false, NODES false) INSERT INTO xc_alter_table_2 VALUES ('Kodek', false);
- QUERY PLAN
-----------------------------------------------------------------------------------------------------------------
+ QUERY PLAN
+----------------------------------------------------------------------------------------------------------
Remote Subquery Scan on any
-> Insert on public.xc_alter_table_2
- -> Remote Subquery Scan on all
+ -> Result
Output: NULL::integer, 'Kodek'::character varying(20), false, NULL::integer, NULL::integer
- Distribute results by R
- -> Result
- Output: NULL::integer, 'Kodek'::character varying(20), false, NULL::integer, NULL::integer
-(7 rows)
+(4 rows)
INSERT INTO xc_alter_table_2 VALUES ('Kodek', false);
SELECT b, c FROM xc_alter_table_2 ORDER BY b;
ALTER TABLE xc_alter_table_2 ADD COLUMN a2 varchar(20);
-- Check for query generation of remote INSERT
EXPLAIN (VERBOSE true, COSTS false, NODES false) INSERT INTO xc_alter_table_2 (a, a2, b, c) VALUES (100, 'CEO', 'Gordon', true);
- QUERY PLAN
----------------------------------------------------------------------------------------------------------------------------------------------------
+ QUERY PLAN
+---------------------------------------------------------------------------------------------------------------------------------------------
Remote Subquery Scan on any
-> Insert on public.xc_alter_table_2
- -> Remote Subquery Scan on all
+ -> Result
Output: NULL::integer, 'Gordon'::character varying(20), true, NULL::integer, NULL::integer, 100, 'CEO'::character varying(20)
- Distribute results by R
- -> Result
- Output: NULL::integer, 'Gordon'::character varying(20), true, NULL::integer, NULL::integer, 100, 'CEO'::character varying(20)
-(7 rows)
+(4 rows)
INSERT INTO xc_alter_table_2 (a, a2, b, c) VALUES (100, 'CEO', 'Gordon', true);
SELECT a, a2, b, c FROM xc_alter_table_2 ORDER BY b;