Attempt to fix newly added Memoize regression test
authorDavid Rowley
Fri, 26 Jan 2024 22:17:35 +0000 (11:17 +1300)
committerDavid Rowley
Fri, 26 Jan 2024 22:17:35 +0000 (11:17 +1300)
commita3a836fb5e51183eae624d43225279306c2285b8
tree6e6b0fd8643167a4a01d166f8254ba26e4d0c587
parent5e444a2526cc6f4052ce0004e1df69135c47338a
Attempt to fix newly added Memoize regression test

Both drongo and fairywren seem not to like a new regression test added
by 2cca95e17.  These machines show a different number of actual rows in
the EXPLAIN ANALYZE output.  Since the number of actual rows is divided by
the number of loops, I suspect this might be due to some platform
dependant rounding behavior as the total row count is 5 and the number of
loops is 2.  drongo and fairywren seem to be calculating that 5.0 / 2.0 is
3, whereas most other machines think the answer is 2.

Here we tweak the test query's WHERE clause so it's 4.0 / 2.0 instead.
There shouldn't be too much wiggle room for platform dependant-behavior to
be a factor with those numbers.

Reported-by: Tom Lane
Discussion: https://postgr.es/m/1035225.1706301718%40sss.pgh.pa.us
src/test/regress/expected/memoize.out
src/test/regress/sql/memoize.sql