forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitaeaaf52
committed
Mark pageinspect's disk-accessing functions as parallel restricted.
These functions have been marked parallel safe, but the buildfarm'sresponse to commite2933a6 exposed the flaw in that thinking:if you try to use them on a temporary table, and they run insidea parallel worker, they'll fail with "cannot access temporary tablesduring a parallel operation".Fix that by marking them parallel restricted instead. Maybe somedaywe'll have a better answer and can reverse this decision.Back-patch to v15. To go back further, we'd have to devise variantversions of pre-1.10 pageinspect versions. Given the lack of fieldcomplaints, it doesn't seem worth the trouble. We'll just deemthis case unsupported pre-v15. (If anyone does complain, it mightbe good enough to update the markings manually in their DBs.)Discussion:https://postgr.es/m/E1ox94a-000EHu-VH@gemulon.postgresql.org1 parent51b5834 commitaeaaf52
File tree
4 files changed
+32
-2
lines changed- contrib/pageinspect
4 files changed
+32
-2
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
| 17 | + | |
17 | 18 |
| |
18 | 19 |
| |
19 | 20 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
| 36 | + | |
36 | 37 |
| |
37 | 38 |
| |
38 | 39 |
| |
|
Lines changed: 28 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + |
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
| 3 | + | |
4 | 4 |
| |
5 | 5 |
|
0 commit comments
Comments
(0)