- Notifications
You must be signed in to change notification settings - Fork28
Commitcf0331a
committed
Rethink the dependencies recorded for FieldSelect/FieldStore nodes.
On closer investigation, commitsf3ea3e3 et al were a few bricksshy of a load. What we need is not so much to lock down the resulttype of a FieldSelect, as to lock down the existence of the columnit's trying to extract. Otherwise, we can break it by dropping thatcolumn. The dependency on the result type is then held indirectlythrough the column, and doesn't need to be recorded explicitly.Out of paranoia, I left in the code to record a dependency on theresult type, but it's used only if we can't identify the pg_class OIDfor the column. That shouldn't ever happen right now, AFAICS, butit seems possible that in future the input node could be marked asbeing of type RECORD rather than some specific composite type.Likewise for FieldStore.Like the previous patch, back-patch to all supported branches.Discussion:https://postgr.es/m/22571.1509064146@sss.pgh.pa.us1 parent0ff56a5 commitcf0331a
File tree
3 files changed
+55
-6
lines changed- src
- backend/catalog
- test/regress
- expected
- sql
3 files changed
+55
-6
lines changedLines changed: 30 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1713 | 1713 |
| |
1714 | 1714 |
| |
1715 | 1715 |
| |
| 1716 | + | |
| 1717 | + | |
1716 | 1718 |
| |
1717 |
| - | |
1718 |
| - | |
1719 |
| - | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
1720 | 1734 |
| |
1721 | 1735 |
| |
1722 | 1736 |
| |
| |||
1726 | 1740 |
| |
1727 | 1741 |
| |
1728 | 1742 |
| |
| 1743 | + | |
1729 | 1744 |
| |
1730 |
| - | |
1731 |
| - | |
1732 |
| - | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
1733 | 1757 |
| |
1734 | 1758 |
| |
1735 | 1759 |
| |
|
Lines changed: 17 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2682 | 2682 |
| |
2683 | 2683 |
| |
2684 | 2684 |
| |
| 2685 | + | |
| 2686 | + | |
| 2687 | + | |
| 2688 | + | |
| 2689 | + | |
| 2690 | + | |
| 2691 | + | |
| 2692 | + | |
| 2693 | + | |
| 2694 | + | |
| 2695 | + | |
| 2696 | + | |
| 2697 | + | |
| 2698 | + | |
| 2699 | + | |
| 2700 | + | |
| 2701 | + | |
2685 | 2702 |
| |
2686 | 2703 |
| |
2687 | 2704 |
| |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1698 | 1698 |
| |
1699 | 1699 |
| |
1700 | 1700 |
| |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
1701 | 1709 |
| |
1702 | 1710 |
| |
1703 | 1711 |
| |
|
0 commit comments
Comments
(0)