Fix broken mmap failure-detection code, and improve error message.

Robert Haas <rhaas@postgresql.org>

Commit: 39715af23ae459684963c350dd69eafa2d502e7e
Author: Robert Haas <rhaas@postgresql.org>
Date: 2012-06-28T16:57:22Z
Releases: 9.3.0
Fix broken mmap failure-detection code, and improve error message.

Per an observation by Thom Brown that my previous commit made an
overly large shmem allocation crash the server, on Linux.

Files

PathChange+/−
src/backend/port/sysv_shmem.c modified +10 −3