Re: [HACKERS] Bug in to_timestamp().
От
Arthur Zakirov
Тема
Re: [HACKERS] Bug in to_timestamp().
Дата
Msg-id
20180723133042.GA14350@zakirov.localdomain
Ответ на
Re: [HACKERS] Bug in to_timestamp(). (David G. Johnston)
Список
Дерево обсуждения
Bug in to_timestamp(). amul sul <sul_amul@yahoo.co.in>
Re: Bug in to_timestamp(). Tom Lane <tgl@sss.pgh.pa.us>
Re: Bug in to_timestamp(). Robert Haas <robertmhaas@gmail.com>
Re: Bug in to_timestamp(). amul sul <sul_amul@yahoo.co.in>
Re: Bug in to_timestamp(). Robert Haas <robertmhaas@gmail.com>
Re: Bug in to_timestamp(). Tom Lane <tgl@sss.pgh.pa.us>
Re: Bug in to_timestamp(). Alex Ignatov <a.ignatov@postgrespro.ru>
Re: Bug in to_timestamp(). Albe Laurenz <laurenz.albe@wien.gv.at>
Re: Bug in to_timestamp(). Alex Ignatov <a.ignatov@postgrespro.ru>
Re: Bug in to_timestamp(). Steve Crawford <scrawford@pinpointresearch.com>
Re: Bug in to_timestamp(). "Joshua D. Drake" <jd@commandprompt.com>
Re: Bug in to_timestamp(). Robert Haas <robertmhaas@gmail.com>
Re: Bug in to_timestamp(). Tom Lane <tgl@sss.pgh.pa.us>
Re: Bug in to_timestamp(). "Joshua D. Drake" <jd@commandprompt.com>
Re: Bug in to_timestamp(). Steve Crawford <scrawford@pinpointresearch.com>
Re: Bug in to_timestamp(). Robert Haas <robertmhaas@gmail.com>
Re: Bug in to_timestamp(). Gavin Flower <GavinFlower@archidevsys.co.nz>
Re: Bug in to_timestamp(). "David G. Johnston" <david.g.johnston@gmail.com>
Re: Bug in to_timestamp(). Alex Ignatov <a.ignatov@postgrespro.ru>
Re: Bug in to_timestamp(). amul sul <sul_amul@yahoo.co.in>
Re: Bug in to_timestamp(). Bruce Momjian <bruce@momjian.us>
Re: Bug in to_timestamp(). Alex Ignatov <a.ignatov@postgrespro.ru>
Re: Bug in to_timestamp(). "David G. Johnston" <david.g.johnston@gmail.com>
Re: Bug in to_timestamp(). Robert Haas <robertmhaas@gmail.com>
Re: Bug in to_timestamp(). Alex Ignatov <a.ignatov@postgrespro.ru>
Re: Bug in to_timestamp(). "David G. Johnston" <david.g.johnston@gmail.com>
Re: Bug in to_timestamp(). Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Bug in to_timestamp(). Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: Bug in to_timestamp(). Robert Haas <robertmhaas@gmail.com>
Re: Bug in to_timestamp(). Tom Lane <tgl@sss.pgh.pa.us>
Re: Bug in to_timestamp(). Alex Ignatov <a.ignatov@postgrespro.ru>
Re: Bug in to_timestamp(). Robert Haas <robertmhaas@gmail.com>
Re: Bug in to_timestamp(). Tom Lane <tgl@sss.pgh.pa.us>
Re: Bug in to_timestamp(). Artur Zakirov <a.zakirov@postgrespro.ru>
Re: Bug in to_timestamp(). Pavel Stehule <pavel.stehule@gmail.com>
Re: Bug in to_timestamp(). Artur Zakirov <a.zakirov@postgrespro.ru>
Re: Bug in to_timestamp(). amul sul <sul_amul@yahoo.co.in>
Re: Bug in to_timestamp(). Robert Haas <robertmhaas@gmail.com>
Re: Bug in to_timestamp(). amul sul <sul_amul@yahoo.co.in>
Re: Bug in to_timestamp(). Artur Zakirov <a.zakirov@postgrespro.ru>
Re: Bug in to_timestamp(). Artur Zakirov <a.zakirov@postgrespro.ru>
Re: Bug in to_timestamp(). amul sul <sul_amul@yahoo.co.in>
Re: Bug in to_timestamp(). Robert Haas <robertmhaas@gmail.com>
Re: Bug in to_timestamp(). Artur Zakirov <a.zakirov@postgrespro.ru>
Re: Bug in to_timestamp(). amul sul <sul_amul@yahoo.co.in>
Re: Bug in to_timestamp(). Artur Zakirov <a.zakirov@postgrespro.ru>
Re: Bug in to_timestamp(). amul sul <sul_amul@yahoo.co.in>
Re: Bug in to_timestamp(). Artur Zakirov <a.zakirov@postgrespro.ru>
Re: Bug in to_timestamp(). amul sul <sulamul@gmail.com>
Re: Bug in to_timestamp(). Artur Zakirov <a.zakirov@postgrespro.ru>
Re: Bug in to_timestamp(). amul sul <sulamul@gmail.com>
Re: Bug in to_timestamp(). amul sul <sul_amul@yahoo.co.in>
Re: Bug in to_timestamp(). amul sul <sul_amul@yahoo.co.in>
Re: Bug in to_timestamp(). Tom Lane <tgl@sss.pgh.pa.us>
Re: Bug in to_timestamp(). amul sul <sulamul@gmail.com>
Re: Bug in to_timestamp(). Robert Haas <robertmhaas@gmail.com>
Re: Bug in to_timestamp(). Tom Lane <tgl@sss.pgh.pa.us>
Re: Bug in to_timestamp(). Amul Sul <sulamul@gmail.com>
Re: Bug in to_timestamp(). Michael Paquier <michael.paquier@gmail.com>
Re: Bug in to_timestamp(). Artur Zakirov <a.zakirov@postgrespro.ru>
Re: Bug in to_timestamp(). Tom Lane <tgl@sss.pgh.pa.us>
Re: Bug in to_timestamp(). Artur Zakirov <a.zakirov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Bug in to_timestamp(). Arthur Zakirov <a.zakirov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Bug in to_timestamp(). Arthur Zakirov <a.zakirov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] Bug in to_timestamp(). Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Bug in to_timestamp(). Arthur Zakirov <a.zakirov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Thomas Munro <thomas.munro@enterprisedb.com>
Re: [HACKERS] Bug in to_timestamp(). Arthur Zakirov <a.zakirov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Dmitry Dolgov <9erthalion6@gmail.com>
Re: [HACKERS] Bug in to_timestamp(). Arthur Zakirov <a.zakirov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Bug in to_timestamp(). Dmitry Dolgov <9erthalion6@gmail.com>
Re: [HACKERS] Bug in to_timestamp(). Arthur Zakirov <a.zakirov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Dmitry Dolgov <9erthalion6@gmail.com>
Re: [HACKERS] Bug in to_timestamp(). Dmitry Dolgov <9erthalion6@gmail.com>
Re: [HACKERS] Bug in to_timestamp(). Arthur Zakirov <a.zakirov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Dmitry Dolgov <9erthalion6@gmail.com>
Re: [HACKERS] Bug in to_timestamp(). Arthur Zakirov <a.zakirov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Dmitry Dolgov <9erthalion6@gmail.com>
Re: [HACKERS] Bug in to_timestamp(). Dmitry Dolgov <9erthalion6@gmail.com>
Re: [HACKERS] Bug in to_timestamp(). Arthur Zakirov <a.zakirov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Dmitry Dolgov <9erthalion6@gmail.com>
Re: [HACKERS] Bug in to_timestamp(). Arthur Zakirov <a.zakirov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Bug in to_timestamp(). Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). "David G. Johnston" <david.g.johnston@gmail.com>
Re: [HACKERS] Bug in to_timestamp(). Arthur Zakirov <a.zakirov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Arthur Zakirov <a.zakirov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Arthur Zakirov <a.zakirov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Arthur Zakirov <a.zakirov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Arthur Zakirov <a.zakirov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). "David G. Johnston" <david.g.johnston@gmail.com>
Re: [HACKERS] Bug in to_timestamp(). Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). "David G. Johnston" <david.g.johnston@gmail.com>
Re: [HACKERS] Bug in to_timestamp(). Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). amul sul <sulamul@gmail.com>
Re: [HACKERS] Bug in to_timestamp(). Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). amul sul <sulamul@gmail.com>
Re: [HACKERS] Bug in to_timestamp(). Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Arthur Zakirov <a.zakirov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Bug in to_timestamp(). Prabhat Sahu <prabhat.sahu@enterprisedb.com>
Re: [HACKERS] Bug in to_timestamp(). Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). amul sul <sulamul@gmail.com>
Re: [HACKERS] Bug in to_timestamp(). amul sul <sulamul@gmail.com>
Re: [HACKERS] Bug in to_timestamp(). Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). amul sul <sulamul@gmail.com>
Re: [HACKERS] Bug in to_timestamp(). Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Liudmila Mantrova <l.mantrova@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Liudmila Mantrova <l.mantrova@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: Bug in to_timestamp(). Haribabu Kommi <kommi.haribabu@gmail.com>
Re: [HACKERS] Bug in to_timestamp(). Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] Bug in to_timestamp(). Amul Sul <sulamul@gmail.com>
Re: [HACKERS] Bug in to_timestamp(). Artur Zakirov <a.zakirov@postgrespro.ru>
Re: [HACKERS] Bug in to_timestamp(). David Steele <david@pgmasters.net>
Re: Bug in to_timestamp(). "David G. Johnston" <david.g.johnston@gmail.com>
Re: Bug in to_timestamp(). Robert Haas <robertmhaas@gmail.com>
Re: Bug in to_timestamp(). Bruce Momjian <bruce@momjian.us>
Re: Bug in to_timestamp(). "David G. Johnston" <david.g.johnston@gmail.com>
On Sun, Jul 22, 2018 at 08:22:23AM -0700, David G. Johnston wrote:
> My re-read of the thread the other day left me with a feeling of
> contentment that this was an acceptable change but I also get the feeling
> like I'm missing the downside trade-off too...I was hoping your review
> would help in that regard but as it did not speak to specific
> incompatibilities it has not.
I like more behaviour of the function with the patch. It gives less
unexpected results. For example, the query mentioned above:
SELECT to_timestamp('2011-12-18 23:38:15', 'YYYY-MM-DD HH24:MI:SS')
I looked for some tradeoffs of the patch. I think it could be parsing
strings like the following input strings:
SELECT TO_TIMESTAMP('2011年5月1日', 'yyyy-MM-DD');
SELECT TO_TIMESTAMP('2011y5m1d', 'yyyy-MM-DD');
HEAD extracts year, month and day from the string. But patched
to_timestamp() raises an error. Someone could rely on such behaviour.
The patch divides separator characters from letters and digits. And
'年' or 'y' are letters here. And so the format string doesn't match the
input string.
--
Arthur Zakirov
Postgres Professional: http://www.postgrespro.com
Russian Postgres Company
В списке pgsql-hackers по дате отправления
От: Bruce Momjian
Дата:
От: Andres Freund
Дата: