• Tom Lane's avatar
    Improve hint message for ENOMEM failure from shmget(). · acac35ad
    Tom Lane authored
    It turns out that some platforms return ENOMEM for a request that violates
    SHMALL, whereas we were assuming that ENOSPC would always be used for that.
    Apparently the latter is a Linuxism while ENOMEM is the BSD tradition.
    Extend the ENOMEM hint to suggest that raising SHMALL might be needed.
    Per gripe from A.M.
    
    Backpatch to 9.0, but not further, because this doesn't seem important
    enough to warrant creating extra translation work in the stable branches.
    (If it were, we'd have figured this out years ago.)
    acac35ad
sysv_shmem.c 17 KB