forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit022564f

Amit Kapila
Fix fetching default toast value during decoding of in-progress transactions.
During logical decoding of in-progress transactions, we perform the toasttable scan while fetching the default toast value for an attribute. Weforgot to initialize the flag during this scan to indicate that the systemtable scan is in progress. We need this flag to ensure that during logicaldecoding we never directly access the tableam or heap APIs because we checkfor concurrent aborts only in systable_* APIs.Reported-by: Alexander LakhinAuthor: Takeshi Ideriha, Hou ZhijieReviewed-by: Amit Kapila, Hou ZhijieBackpatch-through: 14Discussion:https://postgr.es/m/18641-6687273b7f15269d@postgresql.org1 parent6ae387e commit022564f
File tree
3 files changed
+60
-0
lines changed- contrib/test_decoding
- expected
- sql
- src/backend/access/index
3 files changed
+60
-0
lines changedLines changed: 22 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
128 | 128 |
| |
129 | 129 |
| |
130 | 130 |
| |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
131 | 153 |
| |
132 | 154 |
| |
133 | 155 |
| |
|
Lines changed: 22 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
59 | 59 |
| |
60 | 60 |
| |
61 | 61 |
| |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
62 | 84 |
| |
63 | 85 |
|
Lines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
713 | 713 |
| |
714 | 714 |
| |
715 | 715 |
| |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
716 | 724 |
| |
717 | 725 |
| |
718 | 726 |
| |
| |||
757 | 765 |
| |
758 | 766 |
| |
759 | 767 |
| |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
760 | 776 |
| |
761 | 777 |
| |
762 | 778 |
| |
|
0 commit comments
Comments
(0)