mirror of https://github.com/citusdata/citus.git
PG17 compatibility: fix plan diff in multi_explain regress test.
parent
1c2e78405b
commit
7f7af62447
|
@ -671,6 +671,15 @@ Aggregate
|
||||||
-> Hash
|
-> Hash
|
||||||
-> Seq Scan on events_1400285 events
|
-> Seq Scan on events_1400285 events
|
||||||
Filter: ((event_type)::text = ANY ('{click,submit,pay}'::text[]))
|
Filter: ((event_type)::text = ANY ('{click,submit,pay}'::text[]))
|
||||||
|
SELECT success FROM run_command_on_workers('alter system set enable_nestloop to off');
|
||||||
|
t
|
||||||
|
t
|
||||||
|
SELECT success FROM run_command_on_workers('alter system set enable_sort to off');
|
||||||
|
t
|
||||||
|
t
|
||||||
|
SELECT success FROM run_command_on_workers('select pg_reload_conf()');
|
||||||
|
t
|
||||||
|
t
|
||||||
-- Union and left join subquery pushdown
|
-- Union and left join subquery pushdown
|
||||||
EXPLAIN (COSTS OFF)
|
EXPLAIN (COSTS OFF)
|
||||||
SELECT
|
SELECT
|
||||||
|
@ -741,11 +750,8 @@ HashAggregate
|
||||||
Tasks Shown: One of 4
|
Tasks Shown: One of 4
|
||||||
-> Task
|
-> Task
|
||||||
Node: host=localhost port=xxxxx dbname=regression
|
Node: host=localhost port=xxxxx dbname=regression
|
||||||
-> GroupAggregate
|
-> HashAggregate
|
||||||
Group Key: subquery_top.hasdone
|
Group Key: COALESCE(subquery_2.hasdone, 'Has not done paying'::text)
|
||||||
-> Sort
|
|
||||||
Sort Key: subquery_top.hasdone
|
|
||||||
-> Subquery Scan on subquery_top
|
|
||||||
-> GroupAggregate
|
-> GroupAggregate
|
||||||
Group Key: ((users.composite_id).tenant_id), ((users.composite_id).user_id), subquery_2.hasdone
|
Group Key: ((users.composite_id).tenant_id), ((users.composite_id).user_id), subquery_2.hasdone
|
||||||
-> Sort
|
-> Sort
|
||||||
|
@ -856,11 +862,8 @@ Sort
|
||||||
Tasks Shown: One of 4
|
Tasks Shown: One of 4
|
||||||
-> Task
|
-> Task
|
||||||
Node: host=localhost port=xxxxx dbname=regression
|
Node: host=localhost port=xxxxx dbname=regression
|
||||||
-> GroupAggregate
|
-> HashAggregate
|
||||||
Group Key: subquery_top.count_pay
|
Group Key: COALESCE(subquery_2.count_pay, '0'::bigint)
|
||||||
-> Sort
|
|
||||||
Sort Key: subquery_top.count_pay
|
|
||||||
-> Subquery Scan on subquery_top
|
|
||||||
-> GroupAggregate
|
-> GroupAggregate
|
||||||
Group Key: ((users.composite_id).tenant_id), ((users.composite_id).user_id), subquery_2.count_pay
|
Group Key: ((users.composite_id).tenant_id), ((users.composite_id).user_id), subquery_2.count_pay
|
||||||
Filter: (array_ndims(array_agg(('action=>1'::text) ORDER BY events.event_time)) > 0)
|
Filter: (array_ndims(array_agg(('action=>1'::text) ORDER BY events.event_time)) > 0)
|
||||||
|
@ -887,13 +890,20 @@ Sort
|
||||||
Filter: ((event_type)::text = 'submit'::text)
|
Filter: ((event_type)::text = 'submit'::text)
|
||||||
-> Hash
|
-> Hash
|
||||||
-> Subquery Scan on subquery_2
|
-> Subquery Scan on subquery_2
|
||||||
-> GroupAggregate
|
-> HashAggregate
|
||||||
Group Key: events_2.composite_id
|
Group Key: events_2.composite_id
|
||||||
Filter: (count(*) > 2)
|
Filter: (count(*) > 2)
|
||||||
-> Sort
|
|
||||||
Sort Key: events_2.composite_id
|
|
||||||
-> Seq Scan on events_1400285 events_2
|
-> Seq Scan on events_1400285 events_2
|
||||||
Filter: ((composite_id >= '(1,-9223372036854775808)'::user_composite_type) AND (composite_id <= '(1,9223372036854775807)'::user_composite_type) AND ((event_type)::text = 'pay'::text))
|
Filter: ((composite_id >= '(1,-9223372036854775808)'::user_composite_type) AND (composite_id <= '(1,9223372036854775807)'::user_composite_type) AND ((event_type)::text = 'pay'::text))
|
||||||
|
SELECT success FROM run_command_on_workers('alter system reset enable_nestloop');
|
||||||
|
t
|
||||||
|
t
|
||||||
|
SELECT success FROM run_command_on_workers('alter system reset enable_sort');
|
||||||
|
t
|
||||||
|
t
|
||||||
|
SELECT success FROM run_command_on_workers('select pg_reload_conf()');
|
||||||
|
t
|
||||||
|
t
|
||||||
-- Lateral join subquery pushdown
|
-- Lateral join subquery pushdown
|
||||||
-- set subquery_pushdown due to limit in the query
|
-- set subquery_pushdown due to limit in the query
|
||||||
SET citus.subquery_pushdown to ON;
|
SET citus.subquery_pushdown to ON;
|
||||||
|
|
|
@ -671,6 +671,15 @@ Aggregate
|
||||||
-> Hash
|
-> Hash
|
||||||
-> Seq Scan on events_1400285 events
|
-> Seq Scan on events_1400285 events
|
||||||
Filter: ((event_type)::text = ANY ('{click,submit,pay}'::text[]))
|
Filter: ((event_type)::text = ANY ('{click,submit,pay}'::text[]))
|
||||||
|
SELECT success FROM run_command_on_workers('alter system set enable_nestloop to off');
|
||||||
|
t
|
||||||
|
t
|
||||||
|
SELECT success FROM run_command_on_workers('alter system set enable_sort to off');
|
||||||
|
t
|
||||||
|
t
|
||||||
|
SELECT success FROM run_command_on_workers('select pg_reload_conf()');
|
||||||
|
t
|
||||||
|
t
|
||||||
-- Union and left join subquery pushdown
|
-- Union and left join subquery pushdown
|
||||||
EXPLAIN (COSTS OFF)
|
EXPLAIN (COSTS OFF)
|
||||||
SELECT
|
SELECT
|
||||||
|
@ -741,11 +750,8 @@ HashAggregate
|
||||||
Tasks Shown: One of 4
|
Tasks Shown: One of 4
|
||||||
-> Task
|
-> Task
|
||||||
Node: host=localhost port=xxxxx dbname=regression
|
Node: host=localhost port=xxxxx dbname=regression
|
||||||
-> GroupAggregate
|
-> HashAggregate
|
||||||
Group Key: subquery_top.hasdone
|
Group Key: COALESCE(subquery_2.hasdone, 'Has not done paying'::text)
|
||||||
-> Sort
|
|
||||||
Sort Key: subquery_top.hasdone
|
|
||||||
-> Subquery Scan on subquery_top
|
|
||||||
-> GroupAggregate
|
-> GroupAggregate
|
||||||
Group Key: ((users.composite_id).tenant_id), ((users.composite_id).user_id), subquery_2.hasdone
|
Group Key: ((users.composite_id).tenant_id), ((users.composite_id).user_id), subquery_2.hasdone
|
||||||
-> Sort
|
-> Sort
|
||||||
|
@ -856,11 +862,8 @@ Sort
|
||||||
Tasks Shown: One of 4
|
Tasks Shown: One of 4
|
||||||
-> Task
|
-> Task
|
||||||
Node: host=localhost port=xxxxx dbname=regression
|
Node: host=localhost port=xxxxx dbname=regression
|
||||||
-> GroupAggregate
|
-> HashAggregate
|
||||||
Group Key: subquery_top.count_pay
|
Group Key: COALESCE(subquery_2.count_pay, '0'::bigint)
|
||||||
-> Sort
|
|
||||||
Sort Key: subquery_top.count_pay
|
|
||||||
-> Subquery Scan on subquery_top
|
|
||||||
-> GroupAggregate
|
-> GroupAggregate
|
||||||
Group Key: ((users.composite_id).tenant_id), ((users.composite_id).user_id), subquery_2.count_pay
|
Group Key: ((users.composite_id).tenant_id), ((users.composite_id).user_id), subquery_2.count_pay
|
||||||
Filter: (array_ndims(array_agg(('action=>1'::text) ORDER BY events.event_time)) > 0)
|
Filter: (array_ndims(array_agg(('action=>1'::text) ORDER BY events.event_time)) > 0)
|
||||||
|
@ -887,13 +890,20 @@ Sort
|
||||||
Filter: ((event_type)::text = 'submit'::text)
|
Filter: ((event_type)::text = 'submit'::text)
|
||||||
-> Hash
|
-> Hash
|
||||||
-> Subquery Scan on subquery_2
|
-> Subquery Scan on subquery_2
|
||||||
-> GroupAggregate
|
-> HashAggregate
|
||||||
Group Key: events_2.composite_id
|
Group Key: events_2.composite_id
|
||||||
Filter: (count(*) > 2)
|
Filter: (count(*) > 2)
|
||||||
-> Sort
|
|
||||||
Sort Key: events_2.composite_id
|
|
||||||
-> Seq Scan on events_1400285 events_2
|
-> Seq Scan on events_1400285 events_2
|
||||||
Filter: ((composite_id >= '(1,-9223372036854775808)'::user_composite_type) AND (composite_id <= '(1,9223372036854775807)'::user_composite_type) AND ((event_type)::text = 'pay'::text))
|
Filter: ((composite_id >= '(1,-9223372036854775808)'::user_composite_type) AND (composite_id <= '(1,9223372036854775807)'::user_composite_type) AND ((event_type)::text = 'pay'::text))
|
||||||
|
SELECT success FROM run_command_on_workers('alter system reset enable_nestloop');
|
||||||
|
t
|
||||||
|
t
|
||||||
|
SELECT success FROM run_command_on_workers('alter system reset enable_sort');
|
||||||
|
t
|
||||||
|
t
|
||||||
|
SELECT success FROM run_command_on_workers('select pg_reload_conf()');
|
||||||
|
t
|
||||||
|
t
|
||||||
-- Lateral join subquery pushdown
|
-- Lateral join subquery pushdown
|
||||||
-- set subquery_pushdown due to limit in the query
|
-- set subquery_pushdown due to limit in the query
|
||||||
SET citus.subquery_pushdown to ON;
|
SET citus.subquery_pushdown to ON;
|
||||||
|
|
|
@ -260,6 +260,10 @@ FROM
|
||||||
tenant_id,
|
tenant_id,
|
||||||
user_id) AS subquery;
|
user_id) AS subquery;
|
||||||
|
|
||||||
|
SELECT success FROM run_command_on_workers('alter system set enable_nestloop to off');
|
||||||
|
SELECT success FROM run_command_on_workers('alter system set enable_sort to off');
|
||||||
|
SELECT success FROM run_command_on_workers('select pg_reload_conf()');
|
||||||
|
|
||||||
-- Union and left join subquery pushdown
|
-- Union and left join subquery pushdown
|
||||||
EXPLAIN (COSTS OFF)
|
EXPLAIN (COSTS OFF)
|
||||||
SELECT
|
SELECT
|
||||||
|
@ -396,6 +400,10 @@ GROUP BY
|
||||||
ORDER BY
|
ORDER BY
|
||||||
count_pay;
|
count_pay;
|
||||||
|
|
||||||
|
SELECT success FROM run_command_on_workers('alter system reset enable_nestloop');
|
||||||
|
SELECT success FROM run_command_on_workers('alter system reset enable_sort');
|
||||||
|
SELECT success FROM run_command_on_workers('select pg_reload_conf()');
|
||||||
|
|
||||||
-- Lateral join subquery pushdown
|
-- Lateral join subquery pushdown
|
||||||
-- set subquery_pushdown due to limit in the query
|
-- set subquery_pushdown due to limit in the query
|
||||||
SET citus.subquery_pushdown to ON;
|
SET citus.subquery_pushdown to ON;
|
||||||
|
|
Loading…
Reference in New Issue