Re: Assertion failure in dependencies_clauselist_selectivity with two clauses on the same statistics expression

From: David Rowley <dgrowleyml(at)gmail(dot)com>
To: BHUVAN CHILUKUTI <c(dot)bhuvan(at)iitg(dot)ac(dot)in>
Cc: "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: Assertion failure in dependencies_clauselist_selectivity with two clauses on the same statistics expression
Date: 2026-10-30 02:34:19
Message-ID: CAApHDvqvV30=XmtTDr4kMYdYufn6EmuAOWj8-tTJhNxQ34knHA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Wed, 28 Oct 2026 at 19:15, BHUVAN CHILUKUTI <c(dot)bhuvan(at)iitg(dot)ac(dot)in> wrote:
> Fix: the attached patch removes the incorrect assertion (nothing downstream
> relies on it), documents that several clauses may share an attnum, and adds
> a regression test to stats_ext.sql. Patched master: make check and
> installcheck-parallel pass 239/239; without the patch the new test crashes
> the assert-enabled server.

Thanks for the patch. Now pushed.

I didn't include the comment as it was the typical sort of
AI-talking-about-the-code-that-was-removed type comment. I got rid of
the test too.

David

In response to

Browse pgsql-bugs by date

  From Date Subject
Previous Message Michael Paquier 2026-10-29 22:46:04 Re: pg_stat_statements stores WITH HOLD cursor query with literals