On 10/24/22 17:26, Frédéric Yhuel wrote:
Hello,When studying the weird planner issue reported here [1], I came up with the attached patch. It reduces the probability of calling get_actual_variable_range().
This isn't very useful anymore thanks to this patch: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=9c6ad5eaa957bdc2132b900a96e0d2ec9264d39c
Unless we want to save a hundred page reads in rare cases.