mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
Tweak new regression test case for better portability.
Buildfarm says we get different plans on 32-bit and 64-bit platforms, probably because of MAXALIGN-related differences in memory-consumption calculations. Add some dummy WHERE clauses so that the planner estimates different sizes for the three generate_series() relations; that should stabilize the choice of join order.
This commit is contained in:
parent
4c8ab1b91d
commit
d4d48a5edd
@ -70,6 +70,7 @@ SELECT DISTINCT (i || '/' || j)::pg_lsn f
|
||||
FROM generate_series(1, 10) i,
|
||||
generate_series(1, 10) j,
|
||||
generate_series(1, 5) k
|
||||
WHERE i <= 10 AND j > 0 AND j <= 10
|
||||
ORDER BY f;
|
||||
QUERY PLAN
|
||||
--------------------------------------------------------------------------
|
||||
@ -81,14 +82,17 @@ SELECT DISTINCT (i || '/' || j)::pg_lsn f
|
||||
-> Function Scan on generate_series k
|
||||
-> Materialize
|
||||
-> Nested Loop
|
||||
-> Function Scan on generate_series i
|
||||
-> Function Scan on generate_series j
|
||||
(10 rows)
|
||||
Filter: ((j > 0) AND (j <= 10))
|
||||
-> Function Scan on generate_series i
|
||||
Filter: (i <= 10)
|
||||
(12 rows)
|
||||
|
||||
SELECT DISTINCT (i || '/' || j)::pg_lsn f
|
||||
FROM generate_series(1, 10) i,
|
||||
generate_series(1, 10) j,
|
||||
generate_series(1, 5) k
|
||||
WHERE i <= 10 AND j > 0 AND j <= 10
|
||||
ORDER BY f;
|
||||
f
|
||||
-------
|
||||
|
@ -30,10 +30,12 @@ SELECT DISTINCT (i || '/' || j)::pg_lsn f
|
||||
FROM generate_series(1, 10) i,
|
||||
generate_series(1, 10) j,
|
||||
generate_series(1, 5) k
|
||||
WHERE i <= 10 AND j > 0 AND j <= 10
|
||||
ORDER BY f;
|
||||
|
||||
SELECT DISTINCT (i || '/' || j)::pg_lsn f
|
||||
FROM generate_series(1, 10) i,
|
||||
generate_series(1, 10) j,
|
||||
generate_series(1, 5) k
|
||||
WHERE i <= 10 AND j > 0 AND j <= 10
|
||||
ORDER BY f;
|
||||
|
Loading…
Reference in New Issue
Block a user