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
|
||||
-> Seq Scan on events_1400285 events
|
||||
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
|
||||
EXPLAIN (COSTS OFF)
|
||||
SELECT
|
||||
|
@ -741,11 +750,8 @@ HashAggregate
|
|||
Tasks Shown: One of 4
|
||||
-> Task
|
||||
Node: host=localhost port=xxxxx dbname=regression
|
||||
-> GroupAggregate
|
||||
Group Key: subquery_top.hasdone
|
||||
-> Sort
|
||||
Sort Key: subquery_top.hasdone
|
||||
-> Subquery Scan on subquery_top
|
||||
-> HashAggregate
|
||||
Group Key: COALESCE(subquery_2.hasdone, 'Has not done paying'::text)
|
||||
-> GroupAggregate
|
||||
Group Key: ((users.composite_id).tenant_id), ((users.composite_id).user_id), subquery_2.hasdone
|
||||
-> Sort
|
||||
|
@ -856,11 +862,8 @@ Sort
|
|||
Tasks Shown: One of 4
|
||||
-> Task
|
||||
Node: host=localhost port=xxxxx dbname=regression
|
||||
-> GroupAggregate
|
||||
Group Key: subquery_top.count_pay
|
||||
-> Sort
|
||||
Sort Key: subquery_top.count_pay
|
||||
-> Subquery Scan on subquery_top
|
||||
-> HashAggregate
|
||||
Group Key: COALESCE(subquery_2.count_pay, '0'::bigint)
|
||||
-> GroupAggregate
|
||||
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)
|
||||
|
@ -887,13 +890,20 @@ Sort
|
|||
Filter: ((event_type)::text = 'submit'::text)
|
||||
-> Hash
|
||||
-> Subquery Scan on subquery_2
|
||||
-> GroupAggregate
|
||||
-> HashAggregate
|
||||
Group Key: events_2.composite_id
|
||||
Filter: (count(*) > 2)
|
||||
-> Sort
|
||||
Sort Key: events_2.composite_id
|
||||
-> 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))
|
||||
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
|
||||
-- set subquery_pushdown due to limit in the query
|
||||
SET citus.subquery_pushdown to ON;
|
||||
|
|
|
@ -671,6 +671,15 @@ Aggregate
|
|||
-> Hash
|
||||
-> Seq Scan on events_1400285 events
|
||||
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
|
||||
EXPLAIN (COSTS OFF)
|
||||
SELECT
|
||||
|
@ -741,11 +750,8 @@ HashAggregate
|
|||
Tasks Shown: One of 4
|
||||
-> Task
|
||||
Node: host=localhost port=xxxxx dbname=regression
|
||||
-> GroupAggregate
|
||||
Group Key: subquery_top.hasdone
|
||||
-> Sort
|
||||
Sort Key: subquery_top.hasdone
|
||||
-> Subquery Scan on subquery_top
|
||||
-> HashAggregate
|
||||
Group Key: COALESCE(subquery_2.hasdone, 'Has not done paying'::text)
|
||||
-> GroupAggregate
|
||||
Group Key: ((users.composite_id).tenant_id), ((users.composite_id).user_id), subquery_2.hasdone
|
||||
-> Sort
|
||||
|
@ -856,11 +862,8 @@ Sort
|
|||
Tasks Shown: One of 4
|
||||
-> Task
|
||||
Node: host=localhost port=xxxxx dbname=regression
|
||||
-> GroupAggregate
|
||||
Group Key: subquery_top.count_pay
|
||||
-> Sort
|
||||
Sort Key: subquery_top.count_pay
|
||||
-> Subquery Scan on subquery_top
|
||||
-> HashAggregate
|
||||
Group Key: COALESCE(subquery_2.count_pay, '0'::bigint)
|
||||
-> GroupAggregate
|
||||
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)
|
||||
|
@ -887,13 +890,20 @@ Sort
|
|||
Filter: ((event_type)::text = 'submit'::text)
|
||||
-> Hash
|
||||
-> Subquery Scan on subquery_2
|
||||
-> GroupAggregate
|
||||
-> HashAggregate
|
||||
Group Key: events_2.composite_id
|
||||
Filter: (count(*) > 2)
|
||||
-> Sort
|
||||
Sort Key: events_2.composite_id
|
||||
-> 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))
|
||||
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
|
||||
-- set subquery_pushdown due to limit in the query
|
||||
SET citus.subquery_pushdown to ON;
|
||||
|
|
|
@ -260,6 +260,10 @@ FROM
|
|||
tenant_id,
|
||||
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
|
||||
EXPLAIN (COSTS OFF)
|
||||
SELECT
|
||||
|
@ -396,6 +400,10 @@ GROUP BY
|
|||
ORDER BY
|
||||
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
|
||||
-- set subquery_pushdown due to limit in the query
|
||||
SET citus.subquery_pushdown to ON;
|
||||
|
|
Loading…
Reference in New Issue