Re: REPOST: InitDB Failure on install
От | Magnus Hagander |
---|---|
Тема | Re: REPOST: InitDB Failure on install |
Дата | |
Msg-id | 6BCB9D8A16AC4241919521715F4D8BCE4569C6@algol.sollentuna.se обсуждение исходный текст |
Ответы |
Re: REPOST: InitDB Failure on install
|
Список | 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
В списке pgsql-hackers-win32 по дате отправления: