Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dplMQ-0007Hp-Gd for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Sep 2017 01:12:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dplMP-0001xL-Fm for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Sep 2017 01:12:01 +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 1dplMN-0001wO-8o for pgsql-hackers@postgresql.org; Thu, 07 Sep 2017 01:11:59 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dplMJ-0007uX-CE for pgsql-hackers@postgresql.org; Thu, 07 Sep 2017 01:11:58 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 3A63220D7E; Wed, 6 Sep 2017 21:11:53 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Wed, 06 Sep 2017 21:11:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=FZZsD4FL3KyD4Q8uQ9vkeqqNxc/SyPeDq3doOL7EkRs=; b=hTYiVvtA r28MWPm89MSHkOiEPEueuU4qaj1Suh82/VXbx/cItS+Pjm3YDEMtbNDL8DI65y8C S147GE19Y7tt3j/OTNa2BQdxJv+WQ1reqGpxZ+AumlOYz31OMat/PIkqb4/Ckbct XsYbPeTmM3m0hA0AXROxNFGEMjPxS+AYUE4ygLOqBcSXNcaRtVfMQ6TXwmTPzw2S 8tGIvdGWcTABKKALdmqFB0NnAIJB2h+cGf4BwjASc0ffI02q9qbQfZOH+qZN3S8I GJ445wxOrmQOzBfhaoDgrJMfbmJt84m/5mS57x1S4dyBGIz+8UQK8dQ7Qn6upZAG F4g3eAHTzGu8qA== X-ME-Sender: X-Sasl-enc: bED8OPg4NhAF3GyPmdgO3wZt+sriNmSvP0SV/EY38tCH 1504746712 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id B2E47240B3; Wed, 6 Sep 2017 21:11:52 -0400 (EDT) Subject: Re: Re: [COMMITTERS] pgsql: pg_rewind: Fix some problems when copying files >2GB. To: Alvaro Herrera , Tom Lane References: <20170904100357.n52nq4lm5wkrpxpi@alvherre.pgsql> Cc: Michael Paquier , Robert Haas , "pgsql-hackers@postgresql.org" From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <9737cd22-7e70-c207-e59f-b6e6440e2d33@2ndquadrant.com> Date: Wed, 6 Sep 2017 21:11:51 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20170904100357.n52nq4lm5wkrpxpi@alvherre.pgsql> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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 9/4/17 06:03, Alvaro Herrera wrote: > Tom Lane wrote: >> Michael Paquier writes: >>> I don't like breaking the abstraction of pg_log() with the existing >>> flags with some kind of pg_debug() layer. The set of APIs present now >>> in pg_rewind for logging is nice to have, and I think that those debug >>> messages should be translated. So what about the attached? >> >> Your point about INT64_FORMAT not necessarily working with fprintf >> is an outstanding reason not to keep it like it is. I've not reviewed >> this patch in detail but I think this is basically the way to fix it. > > Actually this code goes throgh vsnprintf, not fprintf, which should be > safe, so I removed that part of the comment, and pushed. Is there a reason this was not backpatched to 9.5? -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers