- Notifications
You must be signed in to change notification settings - Fork5
Commitde1dfc1
committed
Rearrange code in ExecInitBitmapHeapScan so that we don't initialize the
child plan nodes until we have acquired lock on the relation to scan.The relative order of initialization of plan nodes isn't real important inother cases, but it's critical here because one is supposed to lock arelation before its indexes, not vice versa. The original coding was atleast vulnerable to deadlock against DROP INDEX, and perhaps worse things.1 parent113ece8 commitde1dfc1
1 file changed
+10
-6
lines changedLines changed: 10 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 |
| - | |
| 24 | + | |
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
| |||
508 | 508 |
| |
509 | 509 |
| |
510 | 510 |
| |
511 |
| - | |
512 |
| - | |
513 |
| - | |
514 |
| - | |
515 |
| - | |
516 | 511 |
| |
517 | 512 |
| |
518 | 513 |
| |
| |||
562 | 557 |
| |
563 | 558 |
| |
564 | 559 |
| |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
565 | 569 |
| |
566 | 570 |
| |
567 | 571 |
| |
|
0 commit comments
Comments
(0)