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 1hBQKg-0008Kr-D3 for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Apr 2019 20:48:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hBQKd-0002cF-NS for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Apr 2019 20:48:31 +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 1hBQKd-0002c6-5T for pgsql-hackers@lists.postgresql.org; Tue, 02 Apr 2019 20:48:31 +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 1hBQKa-0004St-6R for pgsql-hackers@postgresql.org; Tue, 02 Apr 2019 20:48:29 +0000 Received: by mail-qt1-x843.google.com with SMTP id h39so17002052qte.2 for ; Tue, 02 Apr 2019 13:48:27 -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=Uqg2AMFZ0ACgqN5I0ckhKczrnd2g/WSEElOyMS1q7Z4=; b=pkyxX44UVJU553U4GfxLTfmI7tWXPo1XaTyMfVIAUukE+H0dZwW4sg4v0N/x1cN2wd u5c7HuNYCOvtPcc1GMqlR3r/0XhTrBilF/LxM/vVAfrQ/jFuCDVsayoo2RA4iMfn7bZL OAffeFwfmf0OWVerQ/I1L35Ipb4KTS4ogIqoYKlxOXjRJAiRLxbRmZkuPCQDG25lq0ek IWqkGY9aPA3EENQhla6W5XJMtosLdJ1rpRZK8EWonkyDFgWF/a+0Ohcn0EDFWx9Ec7zT UpPgHYRNQRK1R/Wk5lioHa/W9mHNXv4DnnletTtRYzAbQr12Q2iSJWJ/h4RmtTFv5UN5 h4pQ== 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=Uqg2AMFZ0ACgqN5I0ckhKczrnd2g/WSEElOyMS1q7Z4=; b=KHhGihObj9oCGFxf3a6zu2KUHmAQudIb5zdZLaFytw+ZxLL6S4HWDaqQ2z75BYWQCF VqGyyY9bPAdnKy72FWkNmDPBl+UROtNMqreVc3AsGVodHVrGNrn2qGQ7QlF9i9fCnxil LTOap2AZwBUVuaj1vcwqKXXwyKTg6xfsGWFCgqRgit5lUfDR83UGMA+J/uqLOddTr2G5 UdvcW/2MKmhAxh4jWcO/QLZlgaFHMO5mCYEw92CU+iBuiYbTb6GR3I6OzQnI/OAvzeDg dCzroFdJXXbCFWcZMq8TbNdDivNGuE6oA1HZlUVmm8Y9INoRbVoxqILqWj+v1LWfnzoG lg0w== X-Gm-Message-State: APjAAAUJsmZoXYUkEm+VFm91hIt4buDFxxkY80FWgi6ofs2Othj19qp6 652pULI9YctxA1otU4PnzIaZ1Q== X-Google-Smtp-Source: APXvYqx/im3TA7kNmTNTEigRf8bMOO1YKcHKC6tFP5j8A13oQp7MwPjsHg3cBErttw4lrhA3R3pUIA== X-Received: by 2002:ac8:2a51:: with SMTP id l17mr16966101qtl.76.1554238107345; Tue, 02 Apr 2019 13:48:27 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id s189sm8195634qkh.19.2019.04.02.13.48.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Apr 2019 13:48:26 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id A9184120D16; Tue, 2 Apr 2019 17:48:24 -0300 (-03) Date: Tue, 2 Apr 2019 17:48:24 -0300 From: Alvaro Herrera To: Tom Lane Cc: Peter Eisentraut , pgsql-hackers , Donald Dong , Andres Freund Subject: Re: Unified logging system for command-line programs Message-ID: <20190402204824.GA24717@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7474.1554236240@sss.pgh.pa.us> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Apr-02, Tom Lane wrote: > Alvaro Herrera writes: > > I don't much like the code that does > > pg_log_error("%s", something); > > > because then the string "%s" is marked for translation. > > Uh, surely we've got hundreds of instances of that in the system already? Actually, we don't have that many, but there are more than I remembered there being -- my memory was telling me that I had erradicated them all in commit 55a70a023c3d but that's sadly misinformed. Seeing this (and also because the API would become nastier than I thought it would), I'll leave this stuff be for now. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services