Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 3B7769FB836 for ; Thu, 21 Jun 2007 21:37:36 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 63251-08 for ; Thu, 21 Jun 2007 21:37:32 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 7B2549FB834 for ; Thu, 21 Jun 2007 21:37:32 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l5M0bRnf009857; Thu, 21 Jun 2007 20:37:28 -0400 (EDT) To: Joe Barwell cc: pgsql-admin@postgresql.org Subject: Re: initdb problem In-reply-to: <467b14c2.2d2.71c.237125455@ihug.co.nz> References: <467b14c2.2d2.71c.237125455@ihug.co.nz> Comments: In-reply-to Joe Barwell message dated "Fri, 22 Jun 2007 12:16:02 +1200" Date: Thu, 21 Jun 2007 20:37:27 -0400 Message-ID: <9856.1182472647@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/228 X-Sequence-Number: 25896 Joe Barwell writes: > acorn$ sysctl -a | grep shm > kern.sysv.shmmax: 4194304 > kern.sysv.shmmin: 1 > kern.sysv.shmmni: 32 > kern.sysv.shmseg: 8 > kern.sysv.shmall: 1024 OK, so you should be able to do 4MB without problems. > acorn$ sudo ipcs -a > Password: > sudo: ipcs: command not found >> Also, which OSX release is this again? > 10.3.9 on a g4. Ugh. I don't recall exactly when Apple got around to including ipcs, but I guess it wasn't in 10.3.9. Your problem is that you're flying blind because you cannot tell what's going on in shared memory. What I suspect is that there's an unused shared memory segment sitting there (perhaps left over from a failed initdb) and eating a sufficiently large fraction of SHMALL that there's no room for another. If correct, then rebooting should make it go away and let you initdb. Since you haven't got ipcrm either, there's basically no other way to get rid of an unwanted shmem segment :-( You should think about upgrading to 10.4.x btw --- for Postgres admin purposes, having ipcs and ipcrm available is alone worth the price of admission. And it does seem they've improved the OS's performance in various ways too. regards, tom lane