Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cCC7b-0003sa-Gm for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Nov 2016 21:08:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cCC7a-0007jj-Uu for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Nov 2016 21:08:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cCC6A-0006AF-NM for pgsql-hackers@postgresql.org; Wed, 30 Nov 2016 21:07:26 +0000 Received: from mail-ua0-x236.google.com ([2607:f8b0:400c:c08::236]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cCC62-0004zu-Sq for pgsql-hackers@postgresql.org; Wed, 30 Nov 2016 21:07:25 +0000 Received: by mail-ua0-x236.google.com with SMTP id b35so226475882uaa.3 for ; Wed, 30 Nov 2016 13:07:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=h1WSwB8g7N0BhEQQ7JhA7AppYQdoN+tEHPJgjsGGyPM=; b=Pi6lWznM3vdtTUOUsr0kMIsrgdbNdN57+SeQTqUN2xslGCrq+9HwNFMr2CZj6u0VSF 79SYyMMFBPIcyiFQwSXCLWyQz/L3Cbl6aGEdO+kRwu+R1thFH4G94xX1YN7KyUeZ9kWD FJmjphX4T22Sy7INDDB142NUK049wHpnDK3Ga0QGyvVjUEQEB/f8SGsaMmfHjjhoWT1x 4eebJRQK0ch/R4R/yTw1cXNk41j0rrAL1EfzP25tHKhqg3ioPFrtSohnPVC1Ow72RTkY x5C/CmQQLehWhugubmt8n90AlXQkCHx6oJvWtnTQLqsM45OjVvYu3ScknVvcdJA++r5N M4hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=h1WSwB8g7N0BhEQQ7JhA7AppYQdoN+tEHPJgjsGGyPM=; b=EV+auk2N+lg8WLjqjkbYW6glvooy+NuTWre6uxyCuChiA/Lcxd4npKTKh3lEqz5gRW jlepWlDAx1lSzY8aLU85/FBfRhzvc3T3DITGut4GiNsGjSSXzkuq7z0ab3vtZ1XdCVx0 OM3k1msmqCLjYeVGJsZoPC3fiZ5aI1mdfurfaH6XPphPCxp+NaaWlNJhir5GlwpaL2qR uWNQiDAgWSVpcRhhzIq2xPcW5sZ16aNWunaISt9oasT+77P06SsAXtQw4cbP+LaB4xZk 4c+q0NPQXc0l2D0LN7mH6JWK+noLrdrs//FDnztPN6YGjLxX6urdsQCdz75YHYDK+gT2 nT9w== X-Gm-Message-State: AKaTC005qCjTGSDMUbQ8n4p5l/IZj0vqLkER6uyezzyxvA/ts880g+ruDikzUpwDLLQvd3l4nQ9gOpHEi/EhcA== X-Received: by 10.176.64.196 with SMTP id i62mr26550859uad.70.1480540037118; Wed, 30 Nov 2016 13:07:17 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.78.138 with HTTP; Wed, 30 Nov 2016 13:07:16 -0800 (PST) In-Reply-To: References: <34dd7956-3324-0305-288d-edc7d56fba76@chrullrich.net> <571E6D90.7050903@dunslane.net> <9d5c6a49-774c-44de-83fc-65c5b431f8d9@chrullrich.net> <2c5f9472-d0cc-df61-78e3-bc48909ffb59@chrullrich.net> <784524b2-bd50-1f5e-dad9-f8840f97753a@chrullrich.net> <20161116072246.GA2297058@tornado.leadboat.com> From: Michael Paquier Date: Thu, 1 Dec 2016 06:07:16 +0900 Message-ID: Subject: Re: pgsql: Add putenv support for msvcrt from Visual Studio 2013 To: Christian Ullrich Cc: PostgreSQL-development , Noah Misch , Andrew Dunstan , Magnus Hagander Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On Thu, Dec 1, 2016 at 1:24 AM, Christian Ullrich wrote: > * From: Michael Paquier > >> With 0005 I am seeing a compilation failure: you need to have the >> declarations in the _MSC_VER block at the beginning of the routine. It > > Sorry, too used to C++. > >> would be nice to mention in a code comment that this what Noah has >> mentioned upthread: if a CRT loads while pgwin32_putenv() is >> executing, the newly-loaded CRT will always have the latest value. > > I fixed the existing comment by removing the last sentence that is in the wrong place now, but I don't see the point in suddenly starting to explain why it is done this way and not the other. > >> Based on that 0006 will need a rebase, nothing huge though. > > Done, new revisions attached. Okay, switched as ready for committer. -- Michael -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers