pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Rowley <drowley@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove unwarranted Assert in dependencies_clauselist_selectivity
Date: Fri, 30 Oct 2026 02:30:55 +0000
Message-ID: <E1xMcON-00000001Kx3-1RW6@gemulon.postgresql.org> (raw)

Remove unwarranted Assert in dependencies_clauselist_selectivity()

The loop above from where the Assert is removed handles assigning the same
attnum to any duplicate expressions, so asserting there are no duplicate
attnums just after purposefully making duplicate ones isn't the correct
thing to do.

The Assert was added by a4d75c86bf, so backpatch to v14

Author: BHUVAN CHILUKUTI <c.bhuvan@iitg.ac.in>
Reviewed-by: David Rowley <dgrowleyml@gmail.com>
Discussion: https://postgr.es/m/PN0P287MB0903563C70D8E5B81912E855A7602@PN0P287MB0903.INDP287.PROD.OUTLOOK.COM
Backpatch-through: 14

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b0392c26bd3cfb61ee24b7577967cc806d01da36

Modified Files
--------------
src/backend/statistics/dependencies.c | 11 -----------
1 file changed, 11 deletions(-)



view thread (7+ messages)  latest in thread

Message-ID: <E1xMcON-00000001Kx3-1RW6@gemulon.postgresql.org>
Permalink:  ../E1xMcON-00000001Kx3-1RW6@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xMcON-00000001Kx3-1RW6@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: drowley@postgresql.org
  Subject: Re: pgsql: Remove unwarranted Assert in dependencies_clauselist_selectivity
  In-Reply-To: <E1xMcON-00000001Kx3-1RW6@gemulon.postgresql.org>
  References: <E1xMcON-00000001Kx3-1RW6@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox