- Notifications
You must be signed in to change notification settings - Fork5
Commit99f2f3c
committed
In recordExtensionInitPriv(), keep the scan til we're done with it
For reasons of sheer brain fade, we (I) was calling systable_endscan()immediately after systable_getnext() and expecting the tuple returnedby systable_getnext() to still be valid.That's clearly wrong. Move the systable_endscan() down below the tupleusage.Discovered initially by Pavel Stehule and then also by Alvaro.Add a regression test based on Alvaro's testing.1 parentd2de44c commit99f2f3c
File tree
6 files changed
+18
-5
lines changed- src
- backend/catalog
- test/modules/test_extensions
- expected
- sql
6 files changed
+18
-5
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5283 | 5283 |
| |
5284 | 5284 |
| |
5285 | 5285 |
| |
5286 |
| - | |
5287 |
| - | |
5288 | 5286 |
| |
5289 | 5287 |
| |
5290 | 5288 |
| |
| |||
5340 | 5338 |
| |
5341 | 5339 |
| |
5342 | 5340 |
| |
| 5341 | + | |
| 5342 | + | |
5343 | 5343 |
| |
5344 | 5344 |
| |
5345 | 5345 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
10 |
| - | |
| 9 | + | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
| 38 | + | |
| 39 | + | |
| 40 | + |
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + |
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + |
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + |
0 commit comments
Comments
(0)