forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3419d51
committed
Fix check_exclusion_or_unique_constraint for UNIQUE NULLS NOT DISTINCT.
Adjusting this function was overlooked in commit94aa7cc. The onlyvisible symptom (so far) is that INSERT ... ON CONFLICT could go intoan endless loop when inserting a null that has a conflict.Richard Guo and Tom Lane, per bug #17558 from Andrew KesperDiscussion:https://postgr.es/m/17558-3f6599ffcf52fd4a@postgresql.org1 parent4c7b163 commit3419d51
File tree
3 files changed
+18
-10
lines changed- src
- backend/executor
- test/regress
- expected
- sql
3 files changed
+18
-10
lines changedLines changed: 12 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
699 | 699 |
| |
700 | 700 |
| |
701 | 701 |
| |
702 |
| - | |
703 |
| - | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
704 | 707 |
| |
705 |
| - | |
| 708 | + | |
706 | 709 |
| |
707 |
| - | |
708 |
| - | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
709 | 715 |
| |
710 | 716 |
| |
711 | 717 |
| |
| |||
717 | 723 |
| |
718 | 724 |
| |
719 | 725 |
| |
720 |
| - | |
| 726 | + | |
721 | 727 |
| |
722 | 728 |
| |
723 | 729 |
| |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
449 | 449 |
| |
450 | 450 |
| |
451 | 451 |
| |
452 |
| - | |
| 452 | + | |
453 | 453 |
| |
454 | 454 |
| |
455 | 455 |
| |
456 | 456 |
| |
457 | 457 |
| |
458 |
| - | |
| 458 | + | |
459 | 459 |
| |
460 | 460 |
| |
| 461 | + | |
461 | 462 |
| |
462 | 463 |
| |
463 | 464 |
| |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
310 | 310 |
| |
311 | 311 |
| |
312 | 312 |
| |
313 |
| - | |
| 313 | + | |
314 | 314 |
| |
315 | 315 |
| |
316 | 316 |
| |
317 |
| - | |
| 317 | + | |
| 318 | + | |
318 | 319 |
| |
319 | 320 |
| |
320 | 321 |
| |
|
0 commit comments
Comments
(0)