Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gaLQx-000113-2t for pgsql-committers@arkaria.postgresql.org; Fri, 21 Dec 2018 14:05:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gaLQv-0000Kv-Pu for pgsql-committers@arkaria.postgresql.org; Fri, 21 Dec 2018 14:05:45 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gaLQv-0000K9-Gn for pgsql-committers@lists.postgresql.org; Fri, 21 Dec 2018 14:05:45 +0000 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gaLQr-0005ix-9b for pgsql-committers@lists.postgresql.org; Fri, 21 Dec 2018 14:05:44 +0000 Received: by mail-qt1-x843.google.com with SMTP id r14so5778738qtp.1 for ; Fri, 21 Dec 2018 06:05:41 -0800 (PST) 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=RNLKcpyNCPMkgu2Mjlu5lLF5dNv+X65yeATocXiA6UI=; b=VLMVVwyrMA/Ht8IGooyj62F8y3Afno/LTdKkp3CyHsCBHhphSZ0P10+gwvITL3Q6FO 2I9g7H8P7znuRKWIK1Vze8yM4mXEDkyCWfSkeyfR5bvF/LCd12AYxVFaQmXmHRqGVuuQ haXo3jGIbMdTYKaXGjAkwuQot+XY6UjcOrWf5AyuJrbsNZPg9IDpiwJSX/ce3XokYuHF jbSpOrCrONJARKPCsJdbJX6A0uW4c6U8KscRHz57jmwowvzGZFEFs8HcdprmoVHCZJCb l4+mJdXsjeHWw4ZZbam5XkaQiNiSAVoKzLoAkfUjzK3cHypW/2VpkSRmIpzDWgGZOgYN X9gg== 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=RNLKcpyNCPMkgu2Mjlu5lLF5dNv+X65yeATocXiA6UI=; b=svu9AbvGJVnWSJHaVLfHgrA0ZFXMNxmnp4hyMPEM3BVCQJ1MUUB4FQZga1S4lXL2MU 9d21MMzgDk5reOvA/tSWAT4JxOz/tqVigpcemL1NrWKKYZXWvIN/5354yddvprUvRA7+ Qxgv3Hs31d8Nr33LjhCkqtSl+IWC/6JR43Hu+zjboX4GxEOzooGgD+6h9c5hiNN0MbXR bvC/SrHxbR5IVwfYnke4VYDmtuRGzPMw5wxe/4tciRRBr5LdAGD6vrYE9BDuqZDOJI0Z ORvwJ856scyehtNMDqbeQ46WuWiQ9Vlgb3uIbHFL8ovTEvecPXvnJTcH2Tc5DhivnsGZ azEA== X-Gm-Message-State: AA+aEWaxIWGnPQySHpfiVciWBt6KHd3/uFgH5QBqqmvrQxeZct8ZSXLn QTTPH9en+DJxlE8IIuROHhh2hbbnD7qQzOSw9WsHmwMDjqGLERiioOPVV1ZTvLZdcm1Qu8qspyV 6InTFqiYxEaERLo6xJiLuVs7CK9BRdzrXpJNosyK1JCOfF74u/0zpGwqnUKhWxF8wWUxCVZAF50 glLyeasa4o7D1ZBToLAd3l X-Google-Smtp-Source: AFSGD/WzJ5pfeJQmBQrYyRixwkNsA0IyDZqQy1COP/aTvRPWxVj+X20Uv5+56NqOjdLrSFdGXwOIOg== X-Received: by 2002:ac8:6b50:: with SMTP id x16mr2541242qts.368.1545401140436; Fri, 21 Dec 2018 06:05:40 -0800 (PST) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id o42sm6604768qtc.90.2018.12.21.06.05.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Dec 2018 06:05:39 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id D573EC76; Fri, 21 Dec 2018 11:05:37 -0300 (-03) Date: Fri, 21 Dec 2018 11:05:37 -0300 From: Alvaro Herrera To: Michael Paquier Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Remove function names from error messages Message-ID: <20181221140537.3qxe4atr6xg6lwzc@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181219234103.GC27104@paquier.xyz> User-Agent: NeoMutt/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Dec-20, Michael Paquier wrote: > On Wed, Dec 19, 2018 at 05:53:48PM +0000, Alvaro Herrera wrote: > > Remove function names from error messages > > > > They are not necessary, and having them there gives useless work for > > translators. > > I am spotting a couple of extra ones for functions: > src/backend/access/transam/xlog.c: > (errmsg("pg_stop_backup cleanup done, waiting for required WAL segments > to be archived"))); Yeah, I grepped for other uses and found format() being mentioned too, but there didn't seem to be any repetition in the messages other than the ones I patched, so I didn't bother. Thanks for following through with these ones in the other thread. I grepped using '()' as part of the pattern to find function names; maybe there's a more comprehensive way. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services