Hi Tom, Would you like to have a look at this? The change is not big and the optimization has also been asked for many times. The attached is the v5 version and I also try my best to write a good commit message.
Here is the commit fest entry: https://commitfest.postgresql.org/45/4268/
v5-0001-Pull-up-ANY-SUBLINK-with-the-necessary-lateral-su.patch
Description: Binary data