Open m3hm3t opened 1 week ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 89.61%. Comparing base (
b29c332
) to head (7ba57a6
).
Hey Mehmet, after your remarks and @onurctirtir's ones, I re-checked this test. You are right that the filter change is not trivial.
However, the filter is not necessary to what the test is about: the test is about correlated sublinks not being yet supported. If we remove "key = 5" from the query, we still have a correlated sublink. So, we can remove "key = 5" from the queries and the result will be the same, and this will get rid of the test difference between versions.
On the other hand, we can add the test with "key = 5" to
pg17.sql
to see the improvement of Postgres applied in Citus.
So, we can remove "key = 5" from the queries and the result will be the same, and this will get rid of the test difference between versions.
On the other hand, we can add the test with "key = 5" to
pg17.sql
to see the improvement of Postgres applied in Citus.
All makes sense to me, let's do both.
PostgreSQL 17 seems to have introduced improvements in how correlated subqueries are handled during plan generation. Instead of generating a trivial subplan with WHERE true, it now applies more specific filtering (WHERE (key = 5)), which makes the execution plan more efficient.
https://github.com/postgres/postgres/commit/b262ad44