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 1iwSDN-0006nT-Ma for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Jan 2020 14:51:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iwSDK-00027D-LH for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Jan 2020 14:51:38 +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 1iwSDK-000276-8v for pgsql-hackers@lists.postgresql.org; Tue, 28 Jan 2020 14:51:38 +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 1iwSDG-0001EB-F3 for pgsql-hackers@lists.postgresql.org; Tue, 28 Jan 2020 14:51:37 +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 00SEpR7s006643; Tue, 28 Jan 2020 09:51:27 -0500 From: Tom Lane To: Peter Eisentraut cc: Mark Dilger , =?UTF-8?Q?Juan_Jos=c3=a9_Santamar=c3=ada_Flecha?= , 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> Comments: In-reply-to Peter Eisentraut message dated "Tue, 28 Jan 2020 09:00:16 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <6641.1580223087.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 28 Jan 2020 09:51:27 -0500 Message-ID: <6642.1580223087@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Eisentraut writes: > On 2020-01-28 04:05, Mark Dilger wrote: >> German uses both Sonnabend and Samstag for Saturday, so don=E2=80=99t y= ou have to compare to a list of values anyway? > Yeah, good point. If it doesn't accept both "Sonnabend" and "Samstag", = > then it's not really usable. If we're going to insist on that, then the entire patch is junk. Indeed, I don't even know where we could get the knowledge of which name(s) to accept, because strftime is surely only going to tell us one of them. regards, tom lane