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

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: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers-win32
>>> In XP pro, it's working fine. But not int w2k server.
>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

Index: backend/port/win32/shmem.c
RCS file:
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;




pgsql-hackers-win32 by date

Next:From: Tom LaneDate: 2004-08-15 21:06:35
Subject: Re: REPOST: InitDB Failure on install
Previous:From: Magnus HaganderDate: 2004-08-15 20:17:17
Subject: Re: REPOST: InitDB Failure on install

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