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.92) (envelope-from ) id 1jB41m-0007qb-7O for pgsql-hackers@arkaria.postgresql.org; Sun, 08 Mar 2020 22:04:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jB41k-0003pO-Qy for pgsql-hackers@arkaria.postgresql.org; Sun, 08 Mar 2020 22:04:04 +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 1jB41k-0003of-Et for pgsql-hackers@lists.postgresql.org; Sun, 08 Mar 2020 22:04:04 +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 1jB41e-0002vC-8w for pgsql-hackers@lists.postgresql.org; Sun, 08 Mar 2020 22:04:03 +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 028M3qEB012377; Sun, 8 Mar 2020 18:03:52 -0400 From: Tom Lane To: James Coleman cc: =?UTF-8?Q?Juan_Jos=C3=A9_Santamar=C3=ADa_Flecha?= , Peter Eisentraut , Mark Dilger , Alvaro Herrera , Arthur Zakirov , Tomas Vondra , PostgreSQL Hackers Subject: Re: Allow to_date() and to_timestamp() to accept localized names In-reply-to: References: <20200124161814.GA8989@alvherre.pgsql> <32487.1579882979@sss.pgh.pa.us> <2f83150e-a2c0-6318-3125-d9b86e421aa2@2ndquadrant.com> <964.1579884408@sss.pgh.pa.us> <7212.1580177517@sss.pgh.pa.us> <2E3D8D71-3B55-4735-A047-1FECE1506CD1@enterprisedb.com> <6642.1580223087@sss.pgh.pa.us> <4144A0A0-4820-458D-A105-D5EC0E0D133B@enterprisedb.com> <16875.1583012185@sss.pgh.pa.us> <6719.1583101530@sss.pgh.pa.us> <29169.1583251740@sss.pgh.pa.us> <16113.1583634677@sss.pgh.pa.us> <16894.158363567! 9@sss.pgh.pa.us> <21675.1583685539@sss.pgh.pa.us> <26487.1583691586@sss.pgh.pa.us> Comments: In-reply-to James Coleman message dated "Sun, 08 Mar 2020 17:43:42 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <12375.1583705032.1@sss.pgh.pa.us> Date: Sun, 08 Mar 2020 18:03:52 -0400 Message-ID: <12376.1583705032@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk James Coleman writes: > So just to confirm I understand, that implies that the issue is solely that > only the utf8 tr_TR set is installed by default on this machine, and the > iso-8859-9 set is a hard requirement (that is, the test is explicitly > testing a codepath that generates utf8 results from a non-utf8 source)? It's not "explicitly" testing that; the fact that "tr_TR" is treated as "tr_TR.iso88599" is surely an implementation artifact. (On macOS, some experimentation shows that "tr_TR" is treated as "tr_TR.UTF-8".) But yeah, I think it's intentional that we want the codeset translation path to be exercised here on at least some platforms. > If in fact Ubuntu doesn't install this locale by default, then is this a > caveat we should add to developer docs somewhere? It seems odd to me that > I'd be the only one encountering it, but OTOH I would have thought this a > fairly vanilla install too... Not sure. The lack of prior complaints points to this not being a common situation. It does seem weird that they'd set things up so that "tr_TR.utf8" exists but not "tr_TR"; even if that's not an outright packaging mistake, it seems like a POLA violation from here. regards, tom lane