<p>Hullo all,</p>
<p>I'm attempting to store several sets of GPS derived spatial data
(simple lat/lon mostly) in PostGIS and have hence installed PostgreSQL
with the PostGIS extension on my iMac (running 10.6.6), the readme that
comes with the PostgreSQL (at least for the latest version of it)
casually warns of the need to increase -significantly- the amounts of
shared memory availalbe for use. (See "attached" readme) Has anyone done
this and what are the risks? I'm rather unwilling to mess with
sysctl.conf simply to get PostGIS working.. but then I can always create
and delete the file via [sudo] if things start getting weird.. that's
an option as well.</p>
<p>Also and rather disconertingly the "warning" re: shared memory seems to come with/from the Mac OS X installer setup by <a target="_blank" class="ext" href="http://www.enterprisedb.com/" title="http://www.enterprisedb.com">http://www.enterprisedb.com</a><span class="ext"></span> (via <a target="_blank" class="ext" href="http://www.postgresql.org/" title="http://www.postgresql.org/">http://www.postgresql.org/</a><span class="ext"></span>) and not with installers from <a target="_blank" class="ext" href="http://www.kyngchaos.com/software:postgres" title="http://www.kyngchaos.com/software:postgres">http://www.kyngchaos.com/software:postgres</a><span class="ext"></span> (via <a target="_blank" class="ext" href="http://postgis.refractions.net/" title="http://postgis.refractions.net/">http://postgis.refractions.net/</a><span class="ext"></span>)</p>
<p>I'm new to this and will be using PostgreSQL/PostGIS (only) to demonstrate a prototype (at least initially) - i..e. DB will be pretty small. What is the best way to go about this issue and incidentally is pgAdmin any help at all with managing the DB?<br>
</p>
<p>Any thoughts?</p>
<p>[Readme] from <a target="_blank" class="ext" href="http://www.enterprisedb.com/" title="http://www.enterprisedb.com">http://www.enterprisedb.com</a> follows:</p>
<p>----------------------------------------------------------------------------------------------------------------------------------------</p>
<p>Shared Memory<br>
-------------</p>
<p>PostgreSQL uses shared memory extensively for caching and inter-process <br>
communication. Unfortunately, the default configuration of Mac OS X does<br>
not allow suitable amounts of shared memory to be created to run the <br>
database server.</p>
<p>Before running the installation, please ensure that your system is <br>
configured to allow the use of larger amounts of shared memory. Note that<br>
this does not 'reserve' any memory so it is safe to configure much higher<br>
values than you might initially need. You can do this by editting the <br>
file /etc/sysctl.conf - e.g.</p>
<p>% sudo vi /etc/sysctl.conf</p>
<p>On a MacBook Pro with 2GB of RAM, the author's sysctl.conf contains:</p>
<p>kern.sysv.shmmax=1610612736<br>
kern.sysv.shmall=393216<br>
kern.sysv.shmmin=1<br>
kern.sysv.shmmni=32<br>
kern.sysv.shmseg=8<br>
kern.maxprocperuid=512<br>
kern.maxproc=2048</p>
<p>Note that (kern.sysv.shmall * 4096) should be greater than or equal to<br>
kern.sysv.shmmax. kern.sysv.shmmax must also be a multiple of 4096.</p>
<p>Once you have edited (or created) the file, reboot before continuing with <br>
the installation. If you wish to check the settings currently being used by <br>
the kernel, you can use the sysctl utility:</p>
<p>% sysctl -a</p>
<p>The database server can now be installed.</p>