Re: REPOST: InitDB Failure on install

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com>, "Rodrigo Moreno" <rodrigo(dot)miguel(at)terra(dot)com(dot)br>
Cc: <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: Re: REPOST: InitDB Failure on install
Date: 2004-08-15 20:37:23
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCE4569C6@algol.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers-win32

>>> In XP pro, it's working fine. But not int w2k server.
><snip>
>
>creating template1 database in F:/PostgreSQL/data/base/1 ...
>WARNING: could
>not find a match for Windows timezone "Hora oficial do Brasil"
>FATAL: could not create shared memory segment: No error
>DETAIL: Failed system call was shmget(key=1, size=1196032, 03600).
>child process was terminated by signal 1
>
>
>>Magnus Hagander, who (mostly) wrote both the binary installer and the
>>new time zone code, is on vacation. Most everybody else is busy right
>>now with the beta so things are a bit slower than usual.
>
>This is not an issue with the timezone code, this is an issue
>with the shmem code. It is clearly not reporting error
>messages correctly. I'll see if I can look into this soon and
>get back to you.
>
>Rodrigo - do you have an environment set up so you can compile
>the source code? For testing possible patches...

Ok, that was quicker than I thought :-)
Can you, or someone else who can reproduce this problem, please try this
patch and see if the error message changes to tell us what's actually
wrong.

Index: backend/port/win32/shmem.c
===================================================================
RCS file:
/projects/cvsroot/pgsql-server/src/backend/port/win32/shmem.c,v
retrieving revision 1.5
diff -c -r1.5 shmem.c
*** backend/port/win32/shmem.c 19 Apr 2004 17:42:58 -0000 1.5
--- backend/port/win32/shmem.c 15 Aug 2004 20:31:29 -0000
***************
*** 123,128 ****
--- 123,129 ----
else if (!hmap)
{
/* Unable to get shared memory */
+ errno = GetLastError();
return -1;
}

Thanks.

//Magnus

Responses

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Tom Lane 2004-08-15 21:06:35 Re: REPOST: InitDB Failure on install
Previous Message Magnus Hagander 2004-08-15 20:17:17 Re: REPOST: InitDB Failure on install