pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix check_exclusion_or_unique_constraint for UNIQUE NULLS NOT DI
Date: Thu, 04 Aug 2022 18:16:40 +0000
Message-ID: <E1oJfOi-000JNR-IL@gemulon.postgresql.org> (raw)

Fix check_exclusion_or_unique_constraint for UNIQUE NULLS NOT DISTINCT.

Adjusting this function was overlooked in commit 94aa7cc5f.  The only
visible symptom (so far) is that INSERT ... ON CONFLICT could go into
an endless loop when inserting a null that has a conflict.

Richard Guo and Tom Lane, per bug #17558 from Andrew Kesper

Discussion: https://postgr.es/m/17558-3f6599ffcf52fd4a@postgresql.org

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3419d51e1957855f527b94ae983fe8503aafe15c

Modified Files
--------------
src/backend/executor/execIndexing.c       | 18 ++++++++++++------
src/test/regress/expected/constraints.out |  5 +++--
src/test/regress/sql/constraints.sql      |  5 +++--
3 files changed, 18 insertions(+), 10 deletions(-)



view thread (2+ messages)

Message-ID: <E1oJfOi-000JNR-IL@gemulon.postgresql.org>
Permalink:  ../E1oJfOi-000JNR-IL@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1oJfOi-000JNR-IL@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix check_exclusion_or_unique_constraint for UNIQUE NULLS NOT DI
  In-Reply-To: <E1oJfOi-000JNR-IL@gemulon.postgresql.org>
  References: <E1oJfOi-000JNR-IL@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