Re: [GENERAL] PostgreSQL 6.4 problems on Linux.

From: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>
To: Fabio Mancinelli <mancinel(at)univaq(dot)it>
Cc: Kevin Lo <jwlo(at)ms11(dot)hinet(dot)net>, pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] PostgreSQL 6.4 problems on Linux.
Date: 1998-11-06 22:30:02
Message-ID: 199811062230.WAA02905@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Fabio Mancinelli wrote:
>On Sat, 7 Nov 1998, Kevin Lo wrote:
>
>> % IpcMemoryCreate: shmget failed (Invalid argument) key=543200
>> 1, size=831176, permission=600
>> FATAL 1: ShmemCreate: cannot create region
>>
>If I am not wrong shmem has to do with X shared memory extension from MIT.
>Probably you try to run postgres not on the host you are logged on.
>I've seen that postgres can be compiled with X support. Try to disable it.
>
>Bye
>
>P.S. : Probably I am completely wrong! :)

I think so... I am able to start the postmaster with -i in Linux 2.0.34.

The error '(Invalid argument)' is presumably from the kernel:

>From the kernel code:
if (size > shp->shm_segsz)
return -EINVAL;

This bit of code is run if an existing shared memory segment is found;
so the problem seems to be that the segment found is too small for the
request made of it.

I suggest that he use ipcrm to clear shared memory segments and then try
again.

One puzzle for me is that ipcs does not report any shared memory in use,
even with two backends using the same database. I thought shared memory
was used to do locking??

(This may be to do with the fact that I am not running my normal kernel
version at the moment.)
--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP key from public servers; key ID 32B8FAA1
========================================
"Let all that you do be done in love."
1 Corinthians 16:14

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Kevin Lo 1998-11-07 05:21:26 Re: [GENERAL] PostgreSQL 6.4 problems on Linux.
Previous Message Dustin Sallings 1998-11-06 22:15:50 max(), datetimes, and indexes