Re: Unknown winsock error 10061

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Wojciech Strzałka <wstrzalka(at)gmail(dot)com>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Unknown winsock error 10061
Date: 2009-07-07 13:46:25
Message-ID: 937d27e10907070646t35572692v1f86ba4367712011@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

2009/7/7 Wojciech Strzałka <wstrzalka(at)gmail(dot)com>:
>
>   Sorry if what i'm talking is completely silly, but
>   the error code (ERROR_INVALID_ADDRESS - 487 (0x1E7)) returned from
>   MapViewOfFileEx suggest the ShMem address is wrong. The Windows
>   error codes are usually not really helpfull but
>   can we log the UsedShmemSegAddr and UsedShmemSegID in
>   PGSharedMemoryCreate and maybe also on successful PGSharedMemoryReAttach
>   in DEBUG log level?

We could, but I don't see how it could be wrong, as it's only set in
PGSharedMemoryCreate and when we pass it down from postmaster to
backend. If something we're being stomped on there, I'd expect it to
be a more random problem.

<reads code some more>

Although, the reattach does get called almost immediately following
the backend variables being read, so maybe they are getting clobbered,
and it's pretty much always shows up in the re-mapping of the shared
memory.

What distribution are you running? I'll see if I can hack up a build
with the extra debugging, but I need to get the integer_datetimes
option right for your database.

--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Andreas Wenk 2009-07-07 13:54:55 Re: Sugestion a db modele like mysql workbrench
Previous Message Wojciech Strzałka 2009-07-07 13:28:47 Re: Unknown winsock error 10061