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 1ivHnJ-0000m0-Pe for pgsql-hackers@arkaria.postgresql.org; Sat, 25 Jan 2020 09:31:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ivHnH-0001UI-Jm for pgsql-hackers@arkaria.postgresql.org; Sat, 25 Jan 2020 09:31:55 +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 1ivHnG-0001UA-Gc for pgsql-hackers@lists.postgresql.org; Sat, 25 Jan 2020 09:31:55 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ivHnB-0006bx-4p for pgsql-hackers@lists.postgresql.org; Sat, 25 Jan 2020 09:31:53 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 4FBED465; Sat, 25 Jan 2020 04:31:45 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Sat, 25 Jan 2020 04:31:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=u/iN22smfR5L4Yaj9nD2HJH+ztcCsMDEfWKOMgR9R wQ=; b=y2WZlLtQGbfjZcs12BfRHmxoN34FzPBMdNiKj7DQcs/lWVI1NuIHpNE79 YosUB0yrq9Tw/N/bjL2EQ8MfLaB2UJ10Zy2Q1W7OQldrSezpG07ismEFtKt9S3QS r8Km+co2/8NWlW9Ptxkj/10MMzGjf7gEkv7yu0cSUUWwihRnwXbDVe3YQYr+KxCk Gq4f9nt8FwF/hHMyl8Nx26A30VPVjLJmvRbhCAKVRsbG+s0yW/QPbyCvSWowggaX c7YGmOCbOR77IyhJ2Y/PHWpvy3gOPXD0uPCISp4idcSppI4446p2j7ICWm0+AU3J K5gidxiibfJc1cNmNlnzFgDle6X9Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrvdejgddthecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuhffvfhhokffffgggjggtgfesthekredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsedvnhguqh hurggurhgrnhhtrdgtohhmqeenucffohhmrghinhepvdhnughquhgrughrrghnthdrtgho mhenucfkphepleefrddvgedvrddvheehrdduuddvnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhhtsedv nhguqhhurggurhgrnhhtrdgtohhm X-ME-Proxy: Received: from april.pezone.net (p5df2ff70.dip0.t-ipconnect.de [93.242.255.112]) by mail.messagingengine.com (Postfix) with ESMTPA id A45863064F12; Sat, 25 Jan 2020 04:31:43 -0500 (EST) Subject: Re: Allow to_date() and to_timestamp() to accept localized names From: Peter Eisentraut To: =?UTF-8?Q?Juan_Jos=c3=a9_Santamar=c3=ada_Flecha?= , Tom Lane References: <20200124161814.GA8989@alvherre.pgsql> <32487.1579882979@sss.pgh.pa.us> <2f83150e-a2c0-6318-3125-d9b86e421aa2@2ndquadrant.com> <964.1579884408@sss.pgh.pa.us> Cc: Alvaro Herrera , Arthur Zakirov , Tomas Vondra , PostgreSQL Hackers Organization: 2ndQuadrant Message-ID: Date: Sat, 25 Jan 2020 10:31:42 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-01-24 19:01, Peter Eisentraut wrote: > postgres=# select to_char(now(),'TMmonth'); > to_char > ------------ > ιανουαρίου > (1 row) > > which is the genitive of ιανουάριος. You use the genitive form for a > date (24th of January) but the nominative otherwise. But the reverse > mapping can only take one of these forms. So here > > select to_date('Ιανουαριος', 'TMMonth'); > > fails, which is bad. For the record, the correct form of that would appear to be select to_date('Ιανουάριος', 'TMMonth'); with the accent. I had tried different variations of that and they all failed. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services