2009/7/7 Wojciech Strzałka <wstrza...@gmail.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 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs