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 1iVL4f-0007ID-RH for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Nov 2019 19:46:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iVL4d-0003HR-V8 for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Nov 2019 19:46:35 +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 1iVL4d-0003Fa-HL for pgsql-hackers@lists.postgresql.org; Thu, 14 Nov 2019 19:46:35 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iVL4a-00057U-U9 for pgsql-hackers@lists.postgresql.org; Thu, 14 Nov 2019 19:46:34 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id xAEJkTG4008833; Thu, 14 Nov 2019 14:46:29 -0500 From: Tom Lane To: Alvaro Herrera cc: Bruce Momjian , Justin Pryzby , pgsql-hackers@lists.postgresql.org, Daniel Gustafsson Subject: Re: format of pg_upgrade loadable_libraries warning In-reply-to: <20191114190652.GA23586@alvherre.pgsql> References: <20191114190652.GA23586@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Thu, 14 Nov 2019 16:06:52 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <8831.1573760789.1@sss.pgh.pa.us> Date: Thu, 14 Nov 2019 14:46:29 -0500 Message-ID: <8832.1573760789@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > On 2019-Oct-07, Bruce Momjian wrote: >> and the "in database" (which I have changed to capitalized "In database" >> in the attached patch), looks like: >> fprintf(script, "In database: %s\n", active_db->db_name); >> meaning it _isn't_ an output error message, but rather something that >> appears in an error file. I don't think either of these are translated. >> Is that wrong? > pg_fatal is a "gettext trigger" (see nls.mk), so that part of the > message is definitely translated. Right, but Bruce's point is that what goes into the separate output file listing problem cases is not translated, and never has been. Maybe we should start doing so, but that would be a distinct issue. I'm not really sure that we should translate it, anyway --- could there be anyone out there who is using tools to process these files? > BTW, how is one supposed to "manually upgrade databases that use > contrib/isb"? This part is not very clear. Agreed, the pg_fatal message is claiming that you can do something without really providing any concrete instructions for it. I'm not sure that that's helpful. regards, tom lane