1
0
mirror of https://github.com/postgres/postgres.git synced 2026-10-23 13:29:09 +03:00
Files
postgres/contrib/postgres_fdw/sql
Alexander Korotkov 0fd1609afe postgres_fdw: Fix flaky push down FUNCTION RTE test
The unnest() test introduced in 0ee83dd4a9 did not produce a
deterministic EXPLAIN plan output.

The two sides of this test's nested loop join cost about the same, so
which one ended up as the outer wasn't stable and could flip between
platforms.

Use an equality predicate on ft1.c3 instead of a range one.  That
restricts ft1 to a single row, so it's clearly the outer of the nested
loop and the Materialize on the inner side goes away, giving a stable
plan.

Author: Sami Imseih <samimseih@gmail.com>
Reviewed-by: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Discussion: https://postgr.es/m/CAA5RZ0uC%3DGOihOKcF7o3JVETF3e-Fkc4OUO5NbqMEKCTeSN-dQ%40mail.gmail.com
2026-08-24 18:50:02 +03:00
..