On 01.03.2017 14:40, Geoff Winkless
wrote:
I don't consider rolling an UDF the best alternative especially after having looked through many solution proposals on the Web which just take an mutable _expression_ and wrap them up in an immutable function. An additional variant of to_date/to_timestamp would have the following advantages (point 2 is most important): 1) a single, recommended and easy way to parse date(times) 2) make people aware of the locale/timezone issue but give them a standard tool to solve it 3) make all those and related Google entries (https://www.google.de/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=postgresql+to_date+immutable&*) point to the same and safe solution eventually Sven |