Re: [HACKERS] Bug in to_timestamp().
Artur Zakirov <a.zakirov@postgrespro.ru>
From: Arthur Zakirov <a.zakirov@postgrespro.ru>
To: Alexander Korotkov <a.korotkov@postgrespro.ru>
Cc: "David G. Johnston" <david.g.johnston@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>, Dmitry Dolgov <9erthalion6@gmail.com>, Robert Haas <robertmhaas@gmail.com>, Thomas Munro <thomas.munro@enterprisedb.com>, amul sul <sulamul@gmail.com>, Pavel Stehule <pavel.stehule@gmail.com>, Alex Ignatov <a.ignatov@postgrespro.ru>, Bruce Momjian <bruce@momjian.us>, amul sul <sul_amul@yahoo.co.in>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2018-08-01T12:17:34Z
Lists: pgsql-hackers
Attachments
- 0001-to-timestamp-format-checking-v13.patch (text/plain) patch v13-0001
Hello, Alexander, On Mon, Jul 23, 2018 at 05:21:43PM +0300, Alexander Korotkov wrote: > Thank you, Arthur. These examples shows downside of this patch, where > users may be faced with incompatibility. But it's good that this > situation can be handled by altering format string. I think these > examples should be added to the documentation and highlighted in > release notes. I updated the documentation. I added a tip text which explains how to_timestamp() and to_date() handled ordinary text prior to PostgreSQL 11 and how they should handle ordinary text now. There is now changes in the code and tests. -- Arthur Zakirov Postgres Professional: http://www.postgrespro.com Russian Postgres Company
Commits
-
Improve behavior of to_timestamp()/to_date() functions
- cf984672427e 12.0 landed
-
Implement TZH and TZM timestamp format patterns
- 11b623dd0a2c 11.0 cited
-
as attache of this mail is patch (to the main tree) with to_char's
- b866d2e2d794 7.1.1 cited