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 1nfP6v-0003pF-Ev for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Apr 2022 16:47:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nfP6u-0006Zx-6S for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Apr 2022 16:47:52 +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 1nfP6t-0006Zo-Sr for pgsql-hackers@lists.postgresql.org; Fri, 15 Apr 2022 16:47:51 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nfP6r-0007hq-Tz for pgsql-hackers@lists.postgresql.org; Fri, 15 Apr 2022 16:47:50 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 23FGlgwE1651296; Fri, 15 Apr 2022 12:47:42 -0400 From: Tom Lane To: "Euler Taveira" cc: "Christoph Berg" , "Peter Eisentraut" , pgsql-hackers@lists.postgresql.org Subject: Re: Inconsistent "ICU Locale" output on older server versions In-reply-to: References: Comments: In-reply-to "Euler Taveira" message dated "Fri, 15 Apr 2022 12:48:30 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1651294.1650041262.1@sss.pgh.pa.us> Date: Fri, 15 Apr 2022 12:47:42 -0400 Message-ID: <1651295.1650041262@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "Euler Taveira" writes: > On Fri, Apr 15, 2022, at 11:58 AM, Christoph Berg wrote: >> When running psql 15 against PG 14, the output is this: >> The "ICU Locale" column is now populated, that seems wrong. > Good catch! Indeed. > Since dataiculocale allows NULL, my suggestion is to use NULL instead of an > empty string. It is consistent with a cluster whose locale provider is libc. Yeah, I agree. We should make the pre-v15 output match what you'd see if looking at a non-ICU v15 database. regards, tom lane