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

Re: [PATCH] "could not reattach to shared memory" onWindows

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Tsutomu Yamada <tsutomu(at)sraoss(dot)co(dot)jp>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [PATCH] "could not reattach to shared memory" onWindows
Date: 2009-07-14 14:02:37
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Tsutomu Yamada wrote:

> This patch using VirtualAlloc()/VirtualFree() to avoid failing in
> reattach to shared memory.
> Can this be added to CommitFest ?

Since this fixes a very annoying bug present in older versions, I think
this should be backpatched all the way back to 8.2.

Some notes about the patch itself:

- please use ereport() instead of elog() for error messages
- Are you really putting the pgwin32_ReserveSharedMemory declaration
inside a function?  Please move that into the appropriate header file.
- Failure to reserve memory in pgwin32_ReserveSharedMemory should be a
FATAL error I think, not simply LOG.

Alvaro Herrera                      
The PostgreSQL Company - Command Prompt, Inc.

In response to


pgsql-hackers by date

Next:From: Alvaro HerreraDate: 2009-07-14 14:14:24
Subject: Re: Comments on automatic DML routing and explicitpartitioning subcommands
Previous:From: Fujii MasaoDate: 2009-07-14 14:01:27
Subject: Synch Rep for CommitFest 2009-07

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