Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oe7yK-0005wo-PA for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Sep 2022 04:50:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oe7yI-0001bR-PC for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Sep 2022 04:49:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oe7yI-0001bB-Dm for pgsql-hackers@lists.postgresql.org; Fri, 30 Sep 2022 04:49:58 +0000 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oe7yF-0000sM-JU for pgsql-hackers@postgresql.org; Fri, 30 Sep 2022 04:49:57 +0000 Received: by mail-pl1-x62a.google.com with SMTP id x1so3005418plv.5 for ; Thu, 29 Sep 2022 21:49:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:from:subject:cc:to:message-id:date:from:to:cc:subject :date; bh=YmWH0wM6GdjGSh+WUbPMUCMz92Ulguv07n36nanFFX8=; b=C4ZZObg2IEo/SYH/o+OlPnjpW+MKTEvRo0rfBlfnKfRH7qNGlUeUs82h0JEfW35Bry 5juoE7dXnhELv/b+lFSvPij+DAxadr6VYqYg24aPiefmog8ntMfoOe9JqGl8AeTGkcTu 8LDeSDUvHX3DUX2uP0cnhv7syNx70lvcVkNEElDhC2XefcMz/Tq0iu0Vf1wrrxGPF0PH 42dOnfJKT6K805h3OL4pAHORNAK4lmkovw6vj3rS6Qkq3grP0L8uLUDLY5BGLCa+f0Mf sPY1FE9KpPT0OiJVCsFDVDQ54PgosPpk5L+G2gJFq8uBL2NdNByILsKlHJ1dV6QZw8J0 99UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:from:subject:cc:to:message-id:date:x-gm-message-state :from:to:cc:subject:date; bh=YmWH0wM6GdjGSh+WUbPMUCMz92Ulguv07n36nanFFX8=; b=sFU1rBMf/A6BGIJNDB2LL8PkMcFjTSEVcC6lWFgnRTkUoRkEkcIipmWtjCQnwnYeWx y59hFKopJFpe5C7sL7qUX+v3oPZj30AokECDUzRqcK8znp3BbzMsoum2+/YJdKJqlrz5 eTnekkHfE7Bi8cGTA9Jikc2iUOX3b83l9CAm+1phj0bZTxMN0Y2rgryxSpLFG/T5X7D8 YKp/Gho1PT7os056TwIHFgyioHkAmXimE2p4hSnYxREsN1BWD7MqKOOlF+H3gHEQRPrP KxDvZXlb8jgJ30RyRh3Fnn9lhwHg9XBM8y49UvCcVKV9vgO53ATqq0XF6JCw6sAyXgF3 84lA== X-Gm-Message-State: ACrzQf3vI9u+zN4xfbekx2dSKfiAX7BBmnileoXfYpBfpMd84rV/Mhvd LLBWYJNyRRCfIjJu/L6nw38= X-Google-Smtp-Source: AMsMyM6weFELA9oQ6LFWTbKVE8mE83skVJfHYWmbfxRyhane3q0iEUp7WCNYErhnY/OgxKB8AY4OTQ== X-Received: by 2002:a17:902:ea11:b0:178:f0a:7472 with SMTP id s17-20020a170902ea1100b001780f0a7472mr6931175plg.46.1664513394475; Thu, 29 Sep 2022 21:49:54 -0700 (PDT) Received: from localhost (KD036014041111.ppp-bb.dion.ne.jp. [36.14.41.111]) by smtp.gmail.com with ESMTPSA id f5-20020aa79685000000b0053e22c7f135sm619943pfk.141.2022.09.29.21.49.52 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Sep 2022 21:49:53 -0700 (PDT) Date: Fri, 30 Sep 2022 13:49:51 +0900 (JST) Message-Id: <20220930.134951.2176153950673898915.horikyota.ntt@gmail.com> To: tgl@sss.pgh.pa.us Cc: bdrouvot@amazon.com, sawada.mshk@gmail.com, ashutosh.bapat.oss@gmail.com, pgsql-hackers@postgresql.org Subject: Re: more descriptive message for process termination due to max_slot_wal_keep_size From: Kyotaro Horiguchi In-Reply-To: <517851.1664506140@sss.pgh.pa.us> References: <332715.1664472660@sss.pgh.pa.us> <20220930.111519.865126851436936262.horikyota.ntt@gmail.com> <517851.1664506140@sss.pgh.pa.us> User-Agent: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk At Thu, 29 Sep 2022 22:49:00 -0400, Tom Lane wrote in > Kyotaro Horiguchi writes: > > By the way, I didn't notice at that time (and forgot about the > > policy), but the HINT message has variations differing only by the > > variable name. > > > What do you think about the attached? > > Hmm, maybe, but a quick grep for 'You might need to increase' > finds about a dozen other cases, and none of them are using %s. (Mmm. I didn't find others only in po files..) > If we do this we should change all of them, and they probably > need "translator:" hints. I'm not sure whether abstracting > away the variable names will make translation harder. I expect that dedicated po-editing tools can lookup corresponding code lines, which gives the answer if no hint is attached at least in this specific case. Anyway, thinking calmly, since we are not about to edit these messages, it's unlikely to happen on purpose, I think. So I don't mean to push this so hard. Thanks for the comment! regards. -- Kyotaro Horiguchi NTT Open Source Software Center