pgsql: Fix check_exclusion_or_unique_constraint for UNIQUE NULLS NOT DI

2022-08-04 Thread Tom Lane
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,

pgsql: Fix check_exclusion_or_unique_constraint for UNIQUE NULLS NOT DI

2022-08-04 Thread Tom Lane
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,