Re: REPOST: InitDB Failure on install

"Magnus Hagander" <[email protected]>
Newsgroups gmane.comp.db.postgresql.devel.win32
Message-ID <[email protected]>
>>> 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

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to [email protected] so that your
      message can get through to the mailing list cleanly
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.