From: Christian Ullrich <chris@chrullrich.net>
To: Andrew Dunstan <andrew@dunslane.net>
To: Magnus Hagander <magnus@hagander.net>
Cc: pgsql-committers <pgsql-committers@postgresql.org>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: pgsql: Add putenv support for msvcrt from Visual Studio 2013
Date: Mon, 25 Apr 2016 21:42:42 +0200
Message-ID: <9d5c6a49-774c-44de-83fc-65c5b431f8d9@chrullrich.net> (raw)
In-Reply-To: <571E6D90.7050903@dunslane.net>
References: <E1atXIK-0003un-G0@gemulon.postgresql.org>
<b0c66170-5711-20dd-2de3-408429ca0f48@chrullrich.net>
<CABUevEzicpYAUOF9ZHkee1-c-gvokKAmr708sqta4H71bOZOWQ@mail.gmail.com>
<34dd7956-3324-0305-288d-edc7d56fba76@chrullrich.net>
<571E6D90.7050903@dunslane.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
* Andrew Dunstan wrote:
> On 04/25/2016 09:27 AM, Christian Ullrich wrote:
>> * Magnus Hagander wrote:
>>
>>> On Sun, Apr 24, 2016 at 9:56 PM, Christian Ullrich
>>> <chris@chrullrich.net> wrote:
>>>> Just noticed something. This DLL detection by name has never worked in
>>>> debug builds where the DLL names end in "d". Is that important?
>>
>>> That's an interesting point. I guess our release builds are never with
>>> debugging info - but could it make the buildfarm "wrong"?
> What if both are present? Is a release build prevented from loading a
> debug dll and vice versa?
Debug and release are simply two separate CRTs. If your process contains
a module that needs the one, and another that needs the other, you will
have both loaded at once.
I had hoped they might share state, but they don't, at least as far as
putenv()/getenv() are concerned.
> Alternatively, can we detect at compile time if we are a debug build and
> if so add the suffix?
No; same reason as above.
--
Christian
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: chris@chrullrich.net, andrew@dunslane.net, magnus@hagander.net, pgsql-hackers@postgresql.org
Subject: Re: pgsql: Add putenv support for msvcrt from Visual Studio 2013
In-Reply-To: <9d5c6a49-774c-44de-83fc-65c5b431f8d9@chrullrich.net>
References: <E1atXIK-0003un-G0@gemulon.postgresql.org> <b0c66170-5711-20dd-2de3-408429ca0f48@chrullrich.net> <CABUevEzicpYAUOF9ZHkee1-c-gvokKAmr708sqta4H71bOZOWQ@mail.gmail.com> <34dd7956-3324-0305-288d-edc7d56fba76@chrullrich.net> <571E6D90.7050903@dunslane.net> <9d5c6a49-774c-44de-83fc-65c5b431f8d9@chrullrich.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox