forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf83040c
committed
Fix rare assertion failure in parallel hash join.
When a backend runs out of inner tuples to hash, it should detach fromgrow_batch_barrier only after it has flushed all batches to disk andmerged counters, not before. Otherwise a concurrent backend inExecParallelHashIncreaseNumBatches() could stop waiting for thisbackend and try to read tuples before they have been written. Thiscommit reorders those operations and should fix the assertion failuresseen occasionally on the build farm since commit1804284.Author: Thomas MunroDiscussion:https://postgr.es/m/E1eRwXy-0004IK-TO%40gemulon.postgresql.org1 parentbe23432 commitf83040c
1 file changed
+3
-2
lines changedLines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
288 | 288 |
| |
289 | 289 |
| |
290 | 290 |
| |
291 |
| - | |
292 |
| - | |
293 | 291 |
| |
294 | 292 |
| |
295 | 293 |
| |
| |||
304 | 302 |
| |
305 | 303 |
| |
306 | 304 |
| |
| 305 | + | |
| 306 | + | |
| 307 | + | |
307 | 308 |
| |
308 | 309 |
| |
309 | 310 |
| |
|
0 commit comments
Comments
(0)