Re: [BUGS] BUG #14632: Plus and minus operators inconsistency with leap years and year intervals.

Поиск
Список
Период
Сортировка
Искать
От
Pietro Pugni
Тема
Re: [BUGS] BUG #14632: Plus and minus operators inconsistency with leap years and year intervals.
Дата
Msg-id
62AA1945-7282-4166-8991-E6EA4C9C37A5@gmail.com
Ответ на
Список
Дерево обсуждения
Re: [BUGS] BUG #14632: Plus and minus operators inconsistency withleap years and year intervals. "David G. Johnston" <david.g.johnston@gmail.com>
Re: [BUGS] BUG #14632: Plus and minus operators inconsistency with leap years and year intervals. Pietro Pugni <pietro.pugni@gmail.com>
Re: [BUGS] BUG #14632: Plus and minus operators inconsistency withleap years and year intervals. John R Pierce <pierce@hogranch.com>
Re: [BUGS] BUG #14632: Plus and minus operators inconsistency withleap years and year intervals. "David G. Johnston" <david.g.johnston@gmail.com>
Re: [BUGS] BUG #14632: Plus and minus operators inconsistency withleap years and year intervals. John R Pierce <pierce@hogranch.com>
Re: [BUGS] BUG #14632: Plus and minus operators inconsistency with leap years and year intervals. Tom Lane <tgl@sss.pgh.pa.us>
Re: [BUGS] BUG #14632: Plus and minus operators inconsistency with leap years and year intervals. Pietro Pugni <pietro.pugni@gmail.com>
Re: [BUGS] BUG #14632: Plus and minus operators inconsistency with leap years and year intervals. Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: [BUGS] BUG #14632: Plus and minus operators inconsistency withleap years and year intervals. "David G. Johnston" <david.g.johnston@gmail.com>
Re: [BUGS] BUG #14632: Plus and minus operators inconsistency with leap years and year intervals. Pietro Pugni <pietro.pugni@gmail.com>
Re: [BUGS] BUG #14632: Plus and minus operators inconsistency withleap years and year intervals. "David G. Johnston" <david.g.johnston@gmail.com>
Re: [BUGS] BUG #14632: Plus and minus operators inconsistency with leap years and year intervals. Pietro Pugni <pietro.pugni@gmail.com>
Re: [BUGS] BUG #14632: Plus and minus operators inconsistency withleap years and year intervals. "David G. Johnston" <david.g.johnston@gmail.com>
Re: [BUGS] BUG #14632: Plus and minus operators inconsistency withleap years and year intervals. "David G. Johnston" <david.g.johnston@gmail.com>
Re: [BUGS] BUG #14632: Plus and minus operators inconsistency withleap years and year intervals. Marko Tiikkaja <marko@joh.to>
Re: [BUGS] BUG #14632: Plus and minus operators inconsistency with leap years and year intervals. Pietro Pugni <pietro.pugni@gmail.com>
Re: [BUGS] BUG #14632: Plus and minus operators inconsistency withleap years and year intervals. Pantelis Theodosiou <ypercube@gmail.com>
Re: [BUGS] BUG #14632: Plus and minus operators inconsistency with leap years and year intervals. Pietro Pugni <pietro.pugni@gmail.com>
Re: [BUGS] BUG #14632: Plus and minus operators inconsistency with leap years and year intervals. Pietro Pugni <pietro.pugni@gmail.com>
Re: [BUGS] BUG #14632: Plus and minus operators inconsistency withleap years and year intervals. Marko Tiikkaja <marko@joh.to>
Re: [BUGS] BUG #14632: Plus and minus operators inconsistency withleap years and year intervals. "David G. Johnston" <david.g.johnston@gmail.com>
Re: [BUGS] BUG #14632: Plus and minus operators inconsistency withleap years and year intervals. Marko Tiikkaja <marko@joh.to>
On Wed, Apr 26, 2017 at 3:44 PM, Pietro Pugni <pietro.pugni@gmail.com> wrote:
I don't know if you intended to supersize your response but it ended up that way in my mail client.
It was my client (Mail on OS X) that messed up font size and just saw it from the web browser..

I'll agree that the age function has enough data available to it to return 10 years in this case.

28 days, target month is February in a non-leap-year (1922), convert to 1 month.  11 months + 1 month = 12 months = 1 year.  9 years + 1 year = 10 years.

But the provided answer is correct as well...

This is the sort of ambiguity/inconsistency I was referring to. Intervals need a context in order to have a meaning but they never gave me issues except from leap years. So, I think it should be solved by “simply” threating leap years in a different way. Intervals are used to approach a human meaning of time measure, what we call “age”. Leap years should represent a specific exception IMHO.

Kind regards,
 Pietro Pugni

В списке pgsql-bugs по дате отправления
От: Michael Paquier
Дата:
От: David G. Johnston
Дата:
FAQ