Re: [HACKERS] Bug in to_timestamp().

Поиск
Список
Период
Сортировка
Искать
От
Arthur Zakirov
Тема
Re: [HACKERS] Bug in to_timestamp().
Дата
Msg-id
20180212114943.GA6629@zakirov.localdomain
Ответ на
Список
Дерево обсуждения
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>
Hello,

On Fri, Feb 09, 2018 at 04:31:14PM +0100, Dmitry Dolgov wrote:
> I went through this thread, and want to summarize a bit:
> 
> From what I see this patch addresses most important concerns that were
> mentioned in the thread, i.e. to make `to_timestamp` less confusing and be
> close to Oracles behavior. The code itself looks clear and sufficient, with the
> required documentation and green tests.

Thank you for reviewing!

> Looks like there are just two questions left so far:
> 
> * I've noticed what I think a difference between current that was introduced in
> this patch and Oracle. In the following case we can have any number of spaces
> after a separator `+` in the input string
> ...
> But no spaces before it (it actually depends on how many separators do we have
> in the format string)
> ... 
> Judging from this http://rextester.com/l/oracle_online_compiler in Oracle it's
> possible to have any number of spaces before or after `+` independently from
> the number of separators in an input string. Is it intended?

Yes, I somehow missed it. I changed the behaviour of separator
characters in format string. They are greedy now and eat whitespaces
before a separator character in an input string. I suppose that there
should be no such problems as in [1].

> * About usage of locale dependent functions e.g. `isalpha`. Yes, looks like
> it's better to have locale-agnostic implementation, but then I'm confused - all
> functions except `isdigit`/`isxdigit` are locale-dependent, including
> `isspace`, which is also in use.

I returned is_separator_char() function for now.

1 - https://www.postgresql.org/message-id/20180112125848.GA32559%40zakirov.localdomain

-- 
Arthur Zakirov
Postgres Professional: http://www.postgrespro.com
Russian Postgres Company
В списке pgsql-hackers по дате отправления
От: Pavan Deolasee
Дата:
От: Rajkumar Raghuwanshi
Дата:
FAQ