forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0740cbd
committed
Refactor ON CONFLICT index inference parse tree representation.
Defer lookup of opfamily and input type of a of a user specified opclassuntil the optimizer selects among available unique indexes; and storethe opclass in the parse analyzed tree instead. The primary reason fordoing this is that for rule deparsing it's easier to use the opclassthan the previous representation.While at it also rename a variable in the inference code to better fitit's purpose.This is separate from the actual fixes for deparsing to make revieweasier.1 parentb48437d commit0740cbd
File tree
8 files changed
+31
-35
lines changed- contrib/pg_stat_statements
- src
- backend
- nodes
- optimizer/util
- parser
- include/nodes
8 files changed
+31
-35
lines changedLines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2645 | 2645 |
| |
2646 | 2646 |
| |
2647 | 2647 |
| |
2648 |
| - | |
2649 |
| - | |
| 2648 | + | |
2650 | 2649 |
| |
2651 | 2650 |
| |
2652 | 2651 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1839 | 1839 |
| |
1840 | 1840 |
| |
1841 | 1841 |
| |
1842 |
| - | |
1843 |
| - | |
| 1842 | + | |
1844 | 1843 |
| |
1845 | 1844 |
| |
1846 | 1845 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
702 | 702 |
| |
703 | 703 |
| |
704 | 704 |
| |
705 |
| - | |
706 |
| - | |
| 705 | + | |
707 | 706 |
| |
708 | 707 |
| |
709 | 708 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1474 | 1474 |
| |
1475 | 1475 |
| |
1476 | 1476 |
| |
1477 |
| - | |
1478 |
| - | |
| 1477 | + | |
1479 | 1478 |
| |
1480 | 1479 |
| |
1481 | 1480 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1214 | 1214 |
| |
1215 | 1215 |
| |
1216 | 1216 |
| |
1217 |
| - | |
1218 |
| - | |
| 1217 | + | |
1219 | 1218 |
| |
1220 | 1219 |
| |
1221 | 1220 |
| |
|
Lines changed: 22 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
438 | 438 |
| |
439 | 439 |
| |
440 | 440 |
| |
441 |
| - | |
442 |
| - | |
| 441 | + | |
| 442 | + | |
443 | 443 |
| |
444 | 444 |
| |
445 | 445 |
| |
| |||
565 | 565 |
| |
566 | 566 |
| |
567 | 567 |
| |
568 |
| - | |
| 568 | + | |
569 | 569 |
| |
570 | 570 |
| |
571 | 571 |
| |
572 |
| - | |
| 572 | + | |
573 | 573 |
| |
574 | 574 |
| |
575 | 575 |
| |
| |||
633 | 633 |
| |
634 | 634 |
| |
635 | 635 |
| |
636 |
| - | |
| 636 | + | |
637 | 637 |
| |
638 | 638 |
| |
639 | 639 |
| |
| |||
660 | 660 |
| |
661 | 661 |
| |
662 | 662 |
| |
663 |
| - | |
| 663 | + | |
664 | 664 |
| |
665 | 665 |
| |
666 | 666 |
| |
667 | 667 |
| |
668 | 668 |
| |
669 | 669 |
| |
670 | 670 |
| |
671 |
| - | |
| 671 | + | |
672 | 672 |
| |
673 | 673 |
| |
674 | 674 |
| |
675 | 675 |
| |
676 |
| - | |
| 676 | + | |
677 | 677 |
| |
678 | 678 |
| |
679 | 679 |
| |
| |||
709 | 709 |
| |
710 | 710 |
| |
711 | 711 |
| |
| 712 | + | |
| 713 | + | |
712 | 714 |
| |
713 | 715 |
| |
714 | 716 |
| |
715 | 717 |
| |
716 | 718 |
| |
717 |
| - | |
| 719 | + | |
718 | 720 |
| |
719 | 721 |
| |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
720 | 731 |
| |
721 | 732 |
| |
722 | 733 |
| |
723 | 734 |
| |
724 | 735 |
| |
725 | 736 |
| |
726 |
| - | |
727 |
| - | |
728 |
| - | |
| 737 | + | |
| 738 | + | |
729 | 739 |
| |
730 | 740 |
| |
731 | 741 |
| |
|
Lines changed: 3 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2730 | 2730 |
| |
2731 | 2731 |
| |
2732 | 2732 |
| |
2733 |
| - | |
2734 |
| - | |
2735 |
| - | |
2736 |
| - | |
| 2733 | + | |
2737 | 2734 |
| |
2738 |
| - | |
2739 |
| - | |
2740 |
| - | |
2741 |
| - | |
2742 |
| - | |
2743 |
| - | |
2744 |
| - | |
| 2735 | + | |
| 2736 | + | |
2745 | 2737 |
| |
2746 | 2738 |
| |
2747 | 2739 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1198 | 1198 |
| |
1199 | 1199 |
| |
1200 | 1200 |
| |
1201 |
| - | |
1202 |
| - | |
| 1201 | + | |
1203 | 1202 |
| |
1204 | 1203 |
| |
1205 | 1204 |
| |
|
0 commit comments
Comments
(0)