Skip site navigation (1) Skip section navigation (2)

BUG #2406: Not all systems support SHM_SHARE_MMU

From: "Paul van der Zwan" <paul(dot)vanderzwan(at)sun(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #2406: Not all systems support SHM_SHARE_MMU
Date: 2006-04-24 20:18:29
Message-ID: 200604242018.k3OKITLQ091071@wwwmaster.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-bugs
The following bug has been logged online:

Bug reference:      2406
Logged by:          Paul van der Zwan
Email address:      paul(dot)vanderzwan(at)sun(dot)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

Responses

pgsql-bugs by date

Next:From: Tom LaneDate: 2006-04-24 21:32:03
Subject: Re: BUG #2403: Date arithemtic using INTERVAL in UPDATE command
Previous:From: Volkan YAZICIDate: 2006-04-24 19:20:50
Subject: Re: BUG #2402: case insensitive match for unicode doesn't work

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group