summaryrefslogtreecommitdiff
path: root/src/tutorial
diff options
context:
space:
mode:
authorNoah Misch2019-04-09 04:39:00 +0000
committerNoah Misch2019-04-09 04:39:00 +0000
commit617dc6d299c957e2784320382b3277ede01d9c63 (patch)
tree6319fc96c357f3f1c73c21e49f129e9cab305a2b /src/tutorial
parent6421011ea24db3a59dc7a0058a03e91981d53635 (diff)
Avoid "could not reattach" by providing space for concurrent allocation.
We've long had reports of intermittent "could not reattach to shared memory" errors on Windows. Buildfarm member dory fails that way when PGSharedMemoryReAttach() execution overlaps with creation of a thread for the process's "default thread pool". Fix that by providing a second region to receive asynchronous allocations that would otherwise intrude into UsedShmemSegAddr. In pgwin32_ReserveSharedMemoryRegion(), stop trying to free reservations landing at incorrect addresses; the caller's next step has been to terminate the affected process. Back-patch to 9.4 (all supported versions). Reviewed by Tom Lane. He also did much of the prerequisite research; see commit bcbf2346d69f6006f126044864dd9383d50d87b4. Discussion: https://postgr.es/m/20190402135442.GA1173872@rfd.leadboat.com
Diffstat (limited to 'src/tutorial')
0 files changed, 0 insertions, 0 deletions