From: | Christian Ullrich <chris(at)chrullrich(dot)net> |
---|---|
To: | Michael Paquier <michael(dot)paquier(at)gmail(dot)com> |
Cc: | Andrew Dunstan <andrew(at)dunslane(dot)net>, Magnus Hagander <magnus(at)hagander(dot)net>, pgsql-committers <pgsql-committers(at)postgresql(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: pgsql: Add putenv support for msvcrt from Visual Studio 2013 |
Date: | 2016-09-06 12:21:00 |
Message-ID: | b1c08e36-5a8e-cc0a-d49e-a9a571ecfc0a@chrullrich.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers |
* Michael Paquier wrote:
> On Tue, Sep 6, 2016 at 5:36 PM, Christian Ullrich <chris(at)chrullrich(dot)net> wrote:
>> * Michael Paquier wrote:
>>> In order to avoid any problems with the load and unload windows, my
>>> bet goes for 0001, 0002 and 0003, with the last two patches merged
>>> together, 0001 being only a set of independent fixes. That's ugly, but
>>> that looks the safest course of actions. I have rebased/rewritten the
>>> patches as attached. Thoughts?
>>
>> In lieu of convincing you to drop the entire thing, yes, that looks about
>> right, except for the BOOL thing.
>
> Yes, right. Thanks. Patch 0001 is definitely something that should be
> applied and backpatched, the CloseHandle() call is buggy. Now 0002 and
> 0003 are improving things, but there have been no reports regarding
> problems in this area, so this could just be applied to master I
> guess. Christian, does that sound right?
Yes.
> By the way, how is it decided that a DLL gets unloaded in a process if
> it is not pinned? Is that something the OS decides?
Reference counting in LoadLibrary() and FreeLibrary(), among other
places. For example, GetModuleHandleEx() (but not the non-Ex) will by
default increment the counter.
--
Christian
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2016-09-06 12:36:49 | Re: pgsql: Add putenv support for msvcrt from Visual Studio 2013 |
Previous Message | Michael Paquier | 2016-09-06 12:02:25 | Re: pgsql: Add putenv support for msvcrt from Visual Studio 2013 |
From | Date | Subject | |
---|---|---|---|
Next Message | Ashutosh Bapat | 2016-09-06 12:24:54 | Re: Declarative partitioning - another take |
Previous Message | Heikki Linnakangas | 2016-09-06 12:20:30 | Tuplesort merge pre-reading |