Bug in to_timestamp().

Поиск
Список
Период
Сортировка
Искать
От
amul sul
Тема
Bug in to_timestamp().
Дата
Msg-id
1873520224.1784572.1465833145330.JavaMail.yahoo@mail.yahoo.com
Список
Дерево обсуждения
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>
Hi,

It's look like bug in to_timestamp() function when format string has more whitespaces compare to input string, see below: 

Ex.1: Two white spaces before HH24 whereas one before input time string

postgres=# SELECT TO_TIMESTAMP('2016-06-13 15:43:36', 'YYYY/MM/DD  HH24:MI:SS');
to_timestamp 
------------------------
2016-06-13 05:43:36-07       <— incorrect time             
(1 row)



Ex.2: One whitespace before YYYY format string

postgres=# SELECT TO_TIMESTAMP('2016/06/13 15:43:36', ' YYYY/MM/DD HH24:MI:SS');
to_timestamp 
------------------------------
0016-06-13 15:43:36-07:52:58      <— incorrect year
(1 row)



If there are one or more consecutive whitespace in the format, we should skip those as long as we could get an actual field.
Thoughts?
Thanks & Regards,
Amul Sul


В списке pgsql-hackers по дате отправления
От: Peter Eisentraut
Дата:
От: Robert Haas
Дата:
Сообщение: Re: Reviewing freeze map code
FAQ