BUG #2406: Not all systems support SHM_SHARE_MMU - Mailing list pgsql-bugs

From Paul van der Zwan
Subject BUG #2406: Not all systems support SHM_SHARE_MMU
Date
Msg-id 200604242018.k3OKITLQ091071@wwwmaster.postgresql.org
Whole thread Raw
Responses Re: BUG #2406: Not all systems support SHM_SHARE_MMU  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
The following bug has been logged online:

Bug reference:      2406
Logged by:          Paul van der Zwan
Email address:      paul.vanderzwan@sun.com
PostgreSQL version: 8.1.3
Operating system:   Solaris
Description:        Not all systems support SHM_SHARE_MMU
Details:

Only systems with large pagesizes support ISM, so always defining
#define PG_SHMAT_FLAGS                  SHM_SHARE_MMU
in src/backend/port/sysv_shmem.c  will cause all calls to shmat to fail with
EINVAL on systems that do not support large pages.
The following may be a better check:
#if def SHM_SHARE_MMU
#define PG_SHMAT_FLAGS ((getpagesizes(0,NULL)>1)?SHM_SHARE_MMU:0)
#else
#define PG_SHMAT_FLAGS 0
#endif

This problem manifested itself on a VIA Mini ITX system and Solaris Nevada (
build 36)

 Paul van der Zwan

pgsql-bugs by date:

Previous
From: "Qingqing Zhou"
Date:
Subject: Re: BUG #2371: database crashes with semctl failed error
Next
From: "Nick Gould"
Date:
Subject: BUG #2411: psql will not run, exits can't find libssl.o.4