Re: BUG #11883: Year 1500 not treated as leap year when it was a leap year

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: BUG #11883: Year 1500 not treated as leap year when it was a leap year
Дата
Msg-id 20141107132503.GM1791@alvin.alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: BUG #11883: Year 1500 not treated as leap year when it was a leap year  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: BUG #11883: Year 1500 not treated as leap year when it was a leap year  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Bruce Momjian wrote:
> On Thu, Nov  6, 2014 at 07:29:49AM -0700, Bruce Hunsaker wrote:
> > > I have applied the attached C comment to document why we use the
> > > Gregorian calendar for pre-1582 years.
> >
> > Thanks everyone for the response. I guess the bottom line for us
> > is that if we want to store dates before 1582, we may not want
> > to use date or timestamp columns for that data, particularly if
> > the dates are from a Julian calendar.
>
> Yeah, the big problem is that there is no way to store leap days for
> years like 1500.  The only good part is that the Gregorian calendar is
> very good at keeping the calendar aligned with the seasons.

I think this warrants a big "Meh".  Here we have a use case for which
a very good calendar system would be truly useful, and it seems as we
satisfy almost all of what the OP needs; yet we fail only because of a
mostly trivial leap year issue.

I agree we don't want a simplistic change that would only change the
rule from Gregorian to Julian without much other thinking; but suppose
Bruce H was able to come up with a well reasoned design to cover all
interesting cases, would we consider accepting a patch that changed the
behavior?  I would also go as far as suggesting that a different data
type might be a useful direction to consider.  (Now I am assuming that
Bruce H is willing to put in the effort to make this work in the first
place.)

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: [HACKERS] ltree::text not immutable?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #11883: Year 1500 not treated as leap year when it was a leap year