Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dmKrn-0002O1-Mq for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Aug 2017 14:18:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dmKrn-00058K-9M for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Aug 2017 14:18:15 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dmKqE-0002Gm-Ns for pgsql-hackers@postgresql.org; Mon, 28 Aug 2017 14:16:38 +0000 Received: from mail-wr0-x236.google.com ([2a00:1450:400c:c0c::236]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dmKqB-0000Ng-PS for pgsql-hackers@postgresql.org; Mon, 28 Aug 2017 14:16:37 +0000 Received: by mail-wr0-x236.google.com with SMTP id n37so2049025wrf.4 for ; Mon, 28 Aug 2017 07:16:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=atv+kSROwCykHFgZd/4Rtbws2jOPEWErZXVLr5hcFTI=; b=kPNS8fLbT3sZWkqjySkA07Dat6S1XoXSVwevQkuBD0Bi7QdA41whFUTW/lUk+pOezJ 9hVZoWMrl2aLFN6JANu6qlhiJiw76Gr+vK5BoeMQLorZ6y6kpE0GfIZZ7qcUJ+0I9Abc 5HJ09X/Y5CmFuc1SFnMMIcJsNPU97wbckuQbBkttOmpxzQ2iFnRVYTj8Z7ZlgtjDS/fI f/84r6LHCaLQvPWS6ABAJtmj0wXjW6i7ps5JVvTU7Tz4zSyACxQt8S0dVFX5m4DnSQfC DbQVnkhhHlVWBL0Xw29ktruRAIzo5Tj+zgLXCazGtZ0eInBFGZrru4A48uUGUrn9eQBW 7iGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=atv+kSROwCykHFgZd/4Rtbws2jOPEWErZXVLr5hcFTI=; b=jt6hq4TZNPWONb/AihFF/CrTrwUh5W05MuSEEkY/si4HYucjN129I9/g5x8BqRAmgP gzAcxhunlcTIHIi+MFdeLUl76s0aBaH4ophbF1iiovZPGVqpLrHom+pMARqQKhI+Rgul sOtUWDOrvXWpaIPDE1tFvG4dSCF0p+LSHGC/EtR5wceJ8KQqJXvYpPBpG1TYaXLIxQQh PkRzDsfN/Mbu44xxIsFbMQ0NVcl+EA5lzTzgdNxnVUABwknKuMtQNAfwUmMOjn96ePFV icLh4jLvxCCGOYeKC7WA4vw+wqE61W1kM6e2LKkxg0MWpjpIg738W6MGvTMlc7OysAvc tcog== X-Gm-Message-State: AHYfb5ik6BRO3MAjGUie/WgdTeob2acbYtwz3sqXrcbU3yDweW5YofZM mFNZN4y9v2xIYMXZ X-Received: by 10.223.178.26 with SMTP id u26mr495670wra.137.1503929793257; Mon, 28 Aug 2017 07:16:33 -0700 (PDT) Received: from alvin.alvh.no-ip.org (net-5-89-62-13.cust.vodafonedsl.it. [5.89.62.13]) by smtp.gmail.com with ESMTPSA id 62sm544378wrq.36.2017.08.28.07.16.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Aug 2017 07:16:32 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id A813F5B9; Mon, 28 Aug 2017 11:16:31 -0300 (-03) Date: Mon, 28 Aug 2017 16:16:31 +0200 From: Alvaro Herrera To: Robert Haas Cc: "pgsql-hackers@postgresql.org" Subject: Re: [COMMITTERS] pgsql: pg_rewind: Fix some problems when copying files >2GB. Message-ID: <20170828141631.zabmccmic7nmrel4@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.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 Robert Haas wrote: > On Mon, Aug 28, 2017 at 9:05 AM, Alvaro Herrera > wrote: > > Robert Haas wrote: > >> pg_rewind: Fix some problems when copying files >2GB. > > > > I just noticed that this broke pg_rewind translation, because of the > > INT64_FORMAT marker in the translatable string. The message catalog now > > has this: > > > > msgid "received chunk for file \"%s\", offset " > > > > for this source line: > > > > pg_log(PG_DEBUG, "received chunk for file \"%s\", offset " INT64_FORMAT ", size %d\n", > > filename, chunkoff, chunksize); > > > > I don't think that this is terribly valuable as a translatable string, > > so my preferred fix would be to have a new function pg_debug() here > > where the messages are *not* marked for translations. > > I am fine with however you want to handle it, but it seems odd to me > that we don't have a way of embedding INT64_FORMAT in a translatable > string. Surely that's going to be a problem in some case, sometime, > isn't it? The way we do that elsewhere is to print out the value to a string variable and then use %s in the translatable message. -- Álvaro Herrera https://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