]> granicus.if.org Git - postgresql/commit
Try to get some info about Windows can't-reattach-to-shared-memory errors.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 28 Apr 2018 01:59:58 +0000 (21:59 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 28 Apr 2018 01:59:58 +0000 (21:59 -0400)
commit63ca350ef9f58d48ac89fd3c68416e319cac0a39
treefa300d6be047362c9cdeb2cb4c2c3ba796cf56d7
parent2e83e6bd74ee8d4d119edf8272406f23e6c546cf
Try to get some info about Windows can't-reattach-to-shared-memory errors.

Add some debug printouts focused on the idea that MapViewOfFileEx might
be rounding its virtual memory allocation up more than we expect (and,
in particular, more than VirtualAllocEx does).

Once we've seen what this reports in one of the failures on buildfarm
members dory or jacana, we might revert this ... or perhaps just
decrease the log level.

Discussion: https://postgr.es/m/25495.1524517820@sss.pgh.pa.us
src/backend/port/win32_shmem.c