forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit70ae82b
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 parentee39a4b commit70ae82b
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 | |
---|---|---|---|
| |||
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
58 |
| - | |
| 58 | + | |
| 59 | + | |
59 | 60 |
| |
60 | 61 |
| |
61 | 62 |
| |
|
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 |
| |
| |||
103 | 111 |
| |
104 | 112 |
| |
105 | 113 |
| |
| 114 | + | |
| 115 | + | |
| 116 | + | |
106 | 117 |
| |
107 | 118 |
| |
108 | 119 |
| |
| |||
160 | 171 |
| |
161 | 172 |
| |
162 | 173 |
| |
| 174 | + | |
| 175 | + | |
163 | 176 |
| |
164 | 177 |
| |
165 | 178 |
| |
|
0 commit comments
Comments
(0)