- Notifications
You must be signed in to change notification settings - Fork28
Commit7ccb2f5
committed
Fix assertion with relation using REPLICA IDENTITY FULL in subscriber
In a logical replication subscriber, a table using REPLICA IDENTITY FULLwhich has a primary key would try to use the primary key's indexavailable to scan for a tuple, but an assertion only assumed as correctthe case of an index associated to REPLICA IDENTITY USING INDEX. Thiscommit corrects the assertion so as the use of a primary key index is avalid case.Reported-by: Dilip KumarAnalyzed-by: Dilip KumarAuthor: Euler TaveiraReviewed-by: Michael Paquier, Masahiko SawadaDiscussion:https://postgr.es/m/CAFiTN-u64S5bUiPL1q5kwpHNd0hRnf1OE-bzxNiOs5zo84i51w@mail.gmail.comBackpatch-through: 101 parent474e7da commit7ccb2f5
File tree
2 files changed
+16
-2
lines changed- src
- backend/executor
- test/subscription/t
2 files changed
+16
-2
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
60 |
| - | |
| 60 | + | |
| 61 | + | |
61 | 62 |
| |
62 | 63 |
| |
63 | 64 |
| |
|
Lines changed: 14 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
37 | 41 |
| |
38 | 42 |
| |
39 | 43 |
| |
| |||
46 | 50 |
| |
47 | 51 |
| |
48 | 52 |
| |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
49 | 57 |
| |
50 | 58 |
| |
51 | 59 |
| |
| |||
64 | 72 |
| |
65 | 73 |
| |
66 | 74 |
| |
67 |
| - | |
| 75 | + | |
68 | 76 |
| |
69 | 77 |
| |
70 | 78 |
| |
| |||
102 | 110 |
| |
103 | 111 |
| |
104 | 112 |
| |
| 113 | + | |
| 114 | + | |
| 115 | + | |
105 | 116 |
| |
106 | 117 |
| |
107 | 118 |
| |
| |||
159 | 170 |
| |
160 | 171 |
| |
161 | 172 |
| |
| 173 | + | |
| 174 | + | |
162 | 175 |
| |
163 | 176 |
| |
164 | 177 |
| |
|
0 commit comments
Comments
(0)