forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8abd0e2
committed
Fix volatile-safety issue in dblink's materializeQueryResult().
Some fields of the sinfo struct are modified within PG_TRY and thenreferenced within PG_CATCH, so as with recent patch to async.c, "volatile"is necessary for strict POSIX compliance; and that propagates to a coupleof subroutines as well as materializeQueryResult() itself. I think therisk of actual issues here is probably higher than in async.c, becausestoreQueryResult() is likely to get inlined into materializeQueryResult(),leaving the compiler free to conclude that its stores into sinfo fields aredead code.1 parent3dd084c commit8abd0e2
1 file changed
+6
-6
lines changedLines changed: 6 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
88 | 88 |
| |
89 | 89 |
| |
90 | 90 |
| |
91 |
| - | |
92 |
| - | |
| 91 | + | |
| 92 | + | |
93 | 93 |
| |
94 | 94 |
| |
95 | 95 |
| |
| |||
958 | 958 |
| |
959 | 959 |
| |
960 | 960 |
| |
961 |
| - | |
| 961 | + | |
962 | 962 |
| |
963 | 963 |
| |
964 | 964 |
| |
965 | 965 |
| |
966 | 966 |
| |
967 |
| - | |
| 967 | + | |
968 | 968 |
| |
969 | 969 |
| |
970 | 970 |
| |
| |||
1069 | 1069 |
| |
1070 | 1070 |
| |
1071 | 1071 |
| |
1072 |
| - | |
| 1072 | + | |
1073 | 1073 |
| |
1074 | 1074 |
| |
1075 | 1075 |
| |
| |||
1137 | 1137 |
| |
1138 | 1138 |
| |
1139 | 1139 |
| |
1140 |
| - | |
| 1140 | + | |
1141 | 1141 |
| |
1142 | 1142 |
| |
1143 | 1143 |
| |
|
0 commit comments
Comments
(0)