Re: pgsql: Ignore PlaceHolderVars when looking up statistics

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Richard Guo <rguo(at)postgresql(dot)org>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: pgsql: Ignore PlaceHolderVars when looking up statistics
Date: 2026-01-02 20:46:13
Message-ID: CA+Tgmobgfvw4w9javDG_aR3EqQC9AYssWcuns7-m4qLx1AyG=w@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On Sun, Dec 28, 2025 at 9:45 PM Richard Guo <rguo(at)postgresql(dot)org> wrote:
> Ignore PlaceHolderVars when looking up statistics
>
> Back-patch to v18. Although this issue exists before that, changes in
> this version made it common enough to notice. Given the lack of field
> reports for older versions, I am not back-patching further.

Generally we don't back-patch fixes that could change plans, because
it tends to produce user complaints. It's maybe more justifiable in
this case because v18 is quite new and you didn't back-patch to older
releases, but are we sure that it's warranted even there?

--
Robert Haas
EDB: http://www.enterprisedb.com

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2026-01-02 21:20:41 Re: pgsql: Ignore PlaceHolderVars when looking up statistics
Previous Message David Rowley 2026-01-02 04:53:48 pgsql: Fix spelling mistake in fk-snapshot-3.spec

Browse pgsql-hackers by date

  From Date Subject
Next Message Matheus Alcantara 2026-01-02 20:48:15 Re: confusing results from pg_get_replication_slots()
Previous Message Matheus Alcantara 2026-01-02 20:33:49 Re: postgres_fdw: Use COPY to speed up batch inserts