Fix check_exclusion_or_unique_constraint for UNIQUE NULLS NOT DISTINCT.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 3419d51e1957855f527b94ae983fe8503aafe15c
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2022-08-04T18:16:26Z
Releases: 15.0
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

Files

Discussion