Re: [PATCH] minor optimization for ineq_histogram_selectivity()

From: Frédéric Yhuel <frederic(dot)yhuel(at)dalibo(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: [PATCH] minor optimization for ineq_histogram_selectivity()
Date: 2022-11-23 15:16:38
Message-ID: 62f84c4d-5daf-3e7a-c1fb-45057a0ea1ac@dalibo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2022-11-23 15:30:45 Re: Another multi-row VALUES bug
Previous Message Tom Lane 2022-11-23 15:07:49 Re: drop postmaster symlink