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 1hiPCf-0006cw-Hc for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Jul 2019 20:16: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 1hiPCd-00023a-9Y for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Jul 2019 20:16:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hiPCd-00023T-12 for pgsql-hackers@lists.postgresql.org; Tue, 02 Jul 2019 20:16:35 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hiPCb-0004oI-0K for pgsql-hackers@postgresql.org; Tue, 02 Jul 2019 20:16: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 x62KGRUU011254; Tue, 2 Jul 2019 16:16:27 -0400 From: Tom Lane To: Alvaro Herrera cc: David Fetter , Fabien COELHO , Rafia Sabih , PostgreSQL Development Subject: Re: [PATCH v5] Show detailed table persistence in \dt+ In-reply-to: <20190702195618.GA28184@alvherre.pgsql> References: <20190702195618.GA28184@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Tue, 02 Jul 2019 15:56:18 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <11252.1562098587.1@sss.pgh.pa.us> Date: Tue, 02 Jul 2019 16:16:27 -0400 Message-ID: <11253.1562098587@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > On 2019-Jul-02, Tom Lane wrote: >> * The persistence description values ought to be translatable, as >> is the usual practice in describe.c. This is slightly painful >> because it requires tweaking the translate_columns[] values in a >> non-constant way, but it's not that bad. > LGTM. I only fear that the cols_so_far thing is easy to break, and the > breakage will be easy to miss. Yeah, but that's pretty true of all the translatability stuff in describe.c. I wonder if there's any way to set up tests for that. The fact that the .po files lag so far behind the source code seems like an impediment --- even if we made a test case that presumed --enable-nls and tried to exercise this, the lack of translations for the new words would get in the way for a long while. regards, tom lane