forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit45e004f
committed
On Windows, retry process creation if we fail to reserve shared memory.
We've heard occasional reports of backend launch failing becausepgwin32_ReserveSharedMemoryRegion() fails, indicating that somethinghas already used that address space in the child process. It's notvery clear what, given that we disable ASLR in Windows builds, butsuspicion falls on antivirus products. It'd be better if we didn'thave to disable ASLR, anyway. So let's try to ameliorate the problemby retrying the process launch after such a failure, up to 100 times.Patch by me, based on previous work by Amit Kapila and others.This is a longstanding issue, so back-patch to all supported branches.Discussion:https://postgr.es/m/CAA4eK1+R6hSx6t_yvwtx+NRzneVp+MRqXAdGJZChcau8Uij-8g@mail.gmail.com1 parentd137a6d commit45e004f
1 file changed
+15
-7
lines changedLines changed: 15 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4510 | 4510 |
| |
4511 | 4511 |
| |
4512 | 4512 |
| |
| 4513 | + | |
4513 | 4514 |
| |
4514 | 4515 |
| |
4515 | 4516 |
| |
| |||
4527 | 4528 |
| |
4528 | 4529 |
| |
4529 | 4530 |
| |
| 4531 | + | |
| 4532 | + | |
| 4533 | + | |
4530 | 4534 |
| |
4531 | 4535 |
| |
4532 | 4536 |
| |
| |||
4618 | 4622 |
| |
4619 | 4623 |
| |
4620 | 4624 |
| |
4621 |
| - | |
| 4625 | + | |
| 4626 | + | |
| 4627 | + | |
| 4628 | + | |
4622 | 4629 |
| |
4623 | 4630 |
| |
4624 | 4631 |
| |
4625 |
| - | |
4626 |
| - | |
4627 |
| - | |
4628 |
| - | |
| 4632 | + | |
4629 | 4633 |
| |
4630 | 4634 |
| |
4631 | 4635 |
| |
4632 | 4636 |
| |
4633 | 4637 |
| |
4634 | 4638 |
| |
4635 |
| - | |
4636 |
| - | |
| 4639 | + | |
| 4640 | + | |
| 4641 | + | |
| 4642 | + | |
| 4643 | + | |
| 4644 | + | |
4637 | 4645 |
| |
4638 | 4646 |
| |
4639 | 4647 |
| |
|
0 commit comments
Comments
(0)