mirror of
https://github.com/postgres/postgres.git
synced 2025-05-02 11:44:50 +03:00
Fix plan instability in the new tuplesort test.
At least buildfarm member florican doesn't use a material node above a sort in the mark/restore case. As material is not intended to be tested with that query, disallow.
This commit is contained in:
parent
7d962eaf50
commit
80ef34fc70
@ -603,6 +603,7 @@ INSERT INTO test_mark_restore(col1, col2, col12)
|
|||||||
BEGIN;
|
BEGIN;
|
||||||
SET LOCAL enable_nestloop = off;
|
SET LOCAL enable_nestloop = off;
|
||||||
SET LOCAL enable_hashjoin = off;
|
SET LOCAL enable_hashjoin = off;
|
||||||
|
SET LOCAL enable_material = off;
|
||||||
-- set query into variable once, to avoid repetition of the fairly long query
|
-- set query into variable once, to avoid repetition of the fairly long query
|
||||||
SELECT $$
|
SELECT $$
|
||||||
SELECT col12, count(distinct a.col1), count(distinct a.col2), count(distinct b.col1), count(distinct b.col2), count(*)
|
SELECT col12, count(distinct a.col1), count(distinct a.col2), count(distinct b.col1), count(distinct b.col2), count(*)
|
||||||
@ -664,11 +665,10 @@ EXPLAIN (COSTS OFF) :qry;
|
|||||||
-> Sort
|
-> Sort
|
||||||
Sort Key: a.col12 DESC
|
Sort Key: a.col12 DESC
|
||||||
-> Seq Scan on test_mark_restore a
|
-> Seq Scan on test_mark_restore a
|
||||||
-> Materialize
|
-> Sort
|
||||||
-> Sort
|
Sort Key: b.col12 DESC
|
||||||
Sort Key: b.col12 DESC
|
-> Seq Scan on test_mark_restore b
|
||||||
-> Seq Scan on test_mark_restore b
|
(14 rows)
|
||||||
(15 rows)
|
|
||||||
|
|
||||||
:qry;
|
:qry;
|
||||||
col12 | count | count | count | count | count
|
col12 | count | count | count | count | count
|
||||||
|
@ -275,6 +275,7 @@ BEGIN;
|
|||||||
|
|
||||||
SET LOCAL enable_nestloop = off;
|
SET LOCAL enable_nestloop = off;
|
||||||
SET LOCAL enable_hashjoin = off;
|
SET LOCAL enable_hashjoin = off;
|
||||||
|
SET LOCAL enable_material = off;
|
||||||
|
|
||||||
-- set query into variable once, to avoid repetition of the fairly long query
|
-- set query into variable once, to avoid repetition of the fairly long query
|
||||||
SELECT $$
|
SELECT $$
|
||||||
|
Loading…
x
Reference in New Issue
Block a user