- Notifications
You must be signed in to change notification settings - Fork5
Commit82c83b3
committed
Fix logical_decoding_timelines test crashes
In the test_slot_timelines test module, we were abusing passing NULLvalues which was received as zeroes in x86, but this breaks in ARM(buildfarm member hamster) by crashing instead. Fix the breakage bymarking these functions as STRICT; the InvalidXid value that waspreviously implicit in NULL values (on x86 at least) can now be passedas 0. Failing to follow the fmgr protocol to check for NULLs beforehandwas causing ARM to fail, as evidenced by segmentation faults inbuildfarm member hamster.In order to use the new functionality in the test script, use COALESCEin the right spot to avoid forwarding NULL values.This was diagnosed from the hamster crash by Craig Ringer, who alsoproposed a different patch (checking for NULL values explicitely in theC function code, and keeping the non-strictness in the C functions).I decided to go with this approach instead.1 parent27f3bbf commit82c83b3
File tree
5 files changed
+19
-16
lines changed- src/test
- modules/test_slot_timelines
- expected
- sql
- recovery/t
5 files changed
+19
-16
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
| 8 | + | |
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 |
| - | |
| 5 | + | |
6 | 6 |
| |
7 | 7 |
|
Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 |
| - | |
| 13 | + | |
14 | 14 |
| |
15 |
| - | |
| 15 | + | |
16 | 16 |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
85 | 85 |
| |
86 | 86 |
| |
87 | 87 |
| |
88 |
| - | |
89 |
| - | |
| 88 | + | |
| 89 | + | |
90 | 90 |
| |
91 | 91 |
| |
92 | 92 |
| |
| |||
95 | 95 |
| |
96 | 96 |
| |
97 | 97 |
| |
98 |
| - | |
| 98 | + | |
99 | 99 |
| |
100 | 100 |
| |
101 | 101 |
| |
|
Lines changed: 10 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
172 | 172 |
| |
173 | 173 |
| |
174 | 174 |
| |
175 |
| - | |
176 |
| - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
177 | 182 |
| |
178 | 183 |
| |
179 | 184 |
| |
| |||
183 | 188 |
| |
184 | 189 |
| |
185 | 190 |
| |
186 |
| - | |
187 |
| - | |
188 |
| - | |
189 |
| - | |
| 191 | + | |
190 | 192 |
| |
191 | 193 |
| |
192 | 194 |
| |
| |||
208 | 210 |
| |
209 | 211 |
| |
210 | 212 |
| |
211 |
| - | |
| 213 | + | |
212 | 214 |
| |
213 | 215 |
| |
214 | 216 |
| |
| |||
243 | 245 |
| |
244 | 246 |
| |
245 | 247 |
| |
| 248 | + | |
246 | 249 |
| |
247 | 250 |
| |
248 | 251 |
| |
|
0 commit comments
Comments
(0)