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 1jAlz7-0002Yj-7o for pgsql-hackers@arkaria.postgresql.org; Sun, 08 Mar 2020 02:48:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jAlz5-0003pp-0N for pgsql-hackers@arkaria.postgresql.org; Sun, 08 Mar 2020 02:48:07 +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 1jAlz4-0003pi-NW for pgsql-hackers@lists.postgresql.org; Sun, 08 Mar 2020 02:48:06 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jAlz2-00046j-Io for pgsql-hackers@lists.postgresql.org; Sun, 08 Mar 2020 02:48:05 +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 0282lxBM016895; Sat, 7 Mar 2020 21:47:59 -0500 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> Comments: In-reply-to James Coleman message dated "Sat, 07 Mar 2020 21:33:40 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <16893.1583635679.1@sss.pgh.pa.us> Date: Sat, 07 Mar 2020 21:47:59 -0500 Message-ID: <16894.1583635679@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk James Coleman writes: > On Sat, Mar 7, 2020 at 9:31 PM Tom Lane wrote: >> Looks like you may not have Turkish locale installed? Try >> locale -a | grep tr_TR > Hmm, when I grep the locales I see `tr_TR.utf8` in the output. I assume the > utf8 version is acceptable? Or is there a non-utf8 variant? Hmm ... I'm far from an expert on the packaging of locale data, but the simplest explanation I can think of is that the tr_TR locale exists to some extent on your machine but the LC_TIME component of that is missing. Do you get different results from "date" depending on the locale? I get $ LANG=C date Sat Mar 7 21:44:24 EST 2020 $ LANG=tr_TR.utf8 date Cts Mar 7 21:44:26 EST 2020 on my Fedora 30 box. Another possibility perhaps is that you have partial locale settings in your environment that are bollixing the test. Try $ env | grep ^LANG $ env | grep ^LC_ If there's more than one relevant environment setting, and they don't all agree, I'm not sure what would happen with our regression tests. BTW, what platform are you using anyway? regards, tom lane