Re: Allow to_date() and to_timestamp() to accept localized names - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Allow to_date() and to_timestamp() to accept localized names
Date
Msg-id dae3654e-aee2-b691-ec82-f8dc43ebfd14@2ndquadrant.com
Whole thread Raw
In response to Re: Allow to_date() and to_timestamp() to accept localized names  (Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>)
Responses Re: Allow to_date() and to_timestamp() to accept localized names
List pgsql-hackers
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



pgsql-hackers by date:

Previous
From: Markus Winand
Date:
Subject: VALUES ROW(...)
Next
From: Tom Lane
Date:
Subject: Re: making the backend's json parser work in frontend code