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 1iwXaA-0004HM-3p for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Jan 2020 20:35:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iwXa8-0004ld-NB for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Jan 2020 20:35:32 +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 1iwXa8-0004lW-6B for pgsql-hackers@lists.postgresql.org; Tue, 28 Jan 2020 20:35:32 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iwXa4-000467-W8 for pgsql-hackers@lists.postgresql.org; Tue, 28 Jan 2020 20:35:30 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id B647D21F82; Tue, 28 Jan 2020 15:35:27 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Tue, 28 Jan 2020 15:35:27 -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=Aafc9BHGn1zOY9z7Gzj/5qB7KNQew5Svr8EbPWEDN rI=; b=RnKwwSEzIOHGcb4E9ti4i8IxlKjrTa384/sPKvLYA3c4c76GonUbaSpMA 3eneYZa1LFDot6PCxA0Hvjh4QXFZKbPble1iFpc55SYyZBeTAJY8TNQ+IflWgu74 ZQNmaCBIRKxEqz8ZqCqxDycw+ohsytz+Z4b5PmgEq9MTjRvU8l2LD2f5240zY8AB wcdCnEyYz7jbuBdWD+i0HSVO3L0RjmAg7vNIf2WU/2u+Wa6k6JtUbRFW5DYC20T9 92qVvoeBX51B+RQayENs3gU+TIhBPbAj2me3hyfBIHecyacip/tPE5Fm1OR92Mq8 P/QplKiWbLp9Sl2dDswce7FoouCjQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrfeeggddufeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhohfkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnug hquhgrughrrghnthdrtghomheqnecuffhomhgrihhnpedvnhguqhhurggurhgrnhhtrdgt ohhmnecukfhppeelfedrvdegvddrvdehhedrudduvdenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghuthes vdhnughquhgrughrrghnthdrtghomh 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 1F530328005D; Tue, 28 Jan 2020 15:35:26 -0500 (EST) Subject: Re: Allow to_date() and to_timestamp() to accept localized names To: =?UTF-8?Q?Juan_Jos=c3=a9_Santamar=c3=ada_Flecha?= , Mark Dilger 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> Cc: Tom Lane , Alvaro Herrera , Arthur Zakirov , Tomas Vondra , PostgreSQL Hackers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Tue, 28 Jan 2020 21:35:25 +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-28 16:47, Juan José Santamaría Flecha wrote: > This patch targets to do something symmetrical to to_char(), which will > just return a single value. I didn't fully realize while reading this thread that to_char() already supports localized output and this patch indeed just wants to do the opposite. So I'm withdrawing my concerns with respect to this patch. As long as it can do a roundtrip conversion with to_char(), it's fine. It's pretty clear that this interface cannot be useful for producing or parsing fully general localized dates. But since it exists now (and it's quasi SQL standard now), we might as well fill in this gap. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services