forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit815d61f
committed
postgres_fdw: Report warning when timeout expires while getting query result.
When aborting remote transaction or sending cancel request to a remote server,postgres_fdw calls pgfdw_get_cleanup_result() to wait for the result oftransaction abort query or cancel request to arrive. It fails to get the resultif the timeout expires or a connection trouble happens.Previously postgres_fdw reported no warning message even when the timeoutexpired or a connection trouble happened in pgfdw_get_cleanup_result().This could make the troubleshooting harder when such an event occurred.This commit makes pgfdw_get_cleanup_result() tell its caller what trouble(timeout or connection error) occurred, on failure, and also makes its callerreport the proper warning message based on that information.Author: Fujii MasaoReviewed-by: Bharath RupireddyDiscussion:https://postgr.es/m/15aa988c-722e-ad3e-c936-4420c5b2bfea@oss.nttdata.com1 parentd6f96ed commit815d61f
1 file changed
+39
-12
lines changedLines changed: 39 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
104 | 104 |
| |
105 | 105 |
| |
106 | 106 |
| |
107 |
| - | |
| 107 | + | |
108 | 108 |
| |
109 | 109 |
| |
110 | 110 |
| |
| |||
1154 | 1154 |
| |
1155 | 1155 |
| |
1156 | 1156 |
| |
| 1157 | + | |
1157 | 1158 |
| |
1158 | 1159 |
| |
1159 | 1160 |
| |
| |||
1180 | 1181 |
| |
1181 | 1182 |
| |
1182 | 1183 |
| |
1183 |
| - | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
1184 | 1195 |
| |
| 1196 | + | |
1185 | 1197 |
| |
1186 | 1198 |
| |
1187 | 1199 |
| |
| |||
1204 | 1216 |
| |
1205 | 1217 |
| |
1206 | 1218 |
| |
| 1219 | + | |
1207 | 1220 |
| |
1208 | 1221 |
| |
1209 | 1222 |
| |
| |||
1224 | 1237 |
| |
1225 | 1238 |
| |
1226 | 1239 |
| |
1227 |
| - | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
1228 | 1249 |
| |
| 1250 | + | |
1229 | 1251 |
| |
1230 | 1252 |
| |
1231 | 1253 |
| |
| |||
1245 | 1267 |
| |
1246 | 1268 |
| |
1247 | 1269 |
| |
1248 |
| - | |
1249 |
| - | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
1250 | 1273 |
| |
1251 | 1274 |
| |
1252 |
| - | |
| 1275 | + | |
| 1276 | + | |
1253 | 1277 |
| |
1254 |
| - | |
| 1278 | + | |
1255 | 1279 |
| |
1256 | 1280 |
| |
| 1281 | + | |
| 1282 | + | |
1257 | 1283 |
| |
1258 | 1284 |
| |
1259 | 1285 |
| |
| |||
1271 | 1297 |
| |
1272 | 1298 |
| |
1273 | 1299 |
| |
1274 |
| - | |
| 1300 | + | |
| 1301 | + | |
1275 | 1302 |
| |
1276 | 1303 |
| |
1277 | 1304 |
| |
| |||
1290 | 1317 |
| |
1291 | 1318 |
| |
1292 | 1319 |
| |
1293 |
| - | |
1294 |
| - | |
| 1320 | + | |
| 1321 | + | |
1295 | 1322 |
| |
1296 | 1323 |
| |
1297 | 1324 |
| |
| |||
1313 | 1340 |
| |
1314 | 1341 |
| |
1315 | 1342 |
| |
1316 |
| - | |
| 1343 | + | |
1317 | 1344 |
| |
1318 | 1345 |
| |
1319 | 1346 |
| |
1320 |
| - | |
| 1347 | + | |
1321 | 1348 |
| |
1322 | 1349 |
| |
1323 | 1350 |
| |
|
0 commit comments
Comments
(0)