From: Bruce Hunsaker <hunsakerbn@ldschurch.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: Bruce Hunsaker <hunsakerbn@ldschurch.org>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: hunsakerbn@familysearch.org
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #11883: Year 1500 not treated as leap year when it was a leap year
Date: Fri, 7 Nov 2014 08:30:53 -0700
Message-ID: <20141107153053.GE4482@gr8.dev> (raw)
In-Reply-To: <3189.1415372786@sss.pgh.pa.us>
References: <20141105175607.26929.23188@wrigleys.postgresql.org>
<20141105180225.GB10345@momjian.us>
<CABUevEzP=g=O=Nmg+DMjwCL+74WsnPdTb98vbs6sSbQq_kdASw@mail.gmail.com>
<15535.1415211201@sss.pgh.pa.us>
<20141106073451.GA4253@momjian.us>
<20141106142949.GA4487@gr8.dev>
<20141107070257.GA29045@momjian.us>
<20141107132503.GM1791@alvin.alvh.no-ip.org>
<3189.1415372786@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 07 Nov 14 10 06, Tom Lane wrote:
> 5. A side issue that's probably pretty relevant for the OP's application
> is that not every country adopted the Gregorian calendar at the same time.
> Really if he wants any data integrity he's going to need to store an
> explicit indication of whether a date is in Julian or Gregorian calendar.
> (In a world of infinite manpower you could imagine extending the zic
> database to provide information about which calendar was used when in
> every region, but I don't see us going there.)
It's quite relevant for us, and for other systems, and so we do our own
date standardization to take into account those factors. Unfortunately
this specific data pre-dates our standardization process, and we are
not sure it's worth the effort to fix, particularly since we only
got errors for the one date.
>
> So the risk/reward/backwards-compatibility tradeoff just doesn't look
> very good from here.
>
> I think the OP's best bet is to store old dates as text, or perhaps
> integers, with some CHECK constraints to make whatever validity checks
> he deems appropriate.
This has been, and is our approach for new systems going forward.
Thanks
--
Bruce Hunsaker
NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: hunsakerbn@ldschurch.org, tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com, bruce@momjian.us, magnus@hagander.net, hunsakerbn@familysearch.org
Subject: Re: BUG #11883: Year 1500 not treated as leap year when it was a leap year
In-Reply-To: <20141107153053.GE4482@gr8.dev>
References: <20141105175607.26929.23188@wrigleys.postgresql.org> <20141105180225.GB10345@momjian.us> <CABUevEzP=g=O=Nmg+DMjwCL+74WsnPdTb98vbs6sSbQq_kdASw@mail.gmail.com> <15535.1415211201@sss.pgh.pa.us> <20141106073451.GA4253@momjian.us> <20141106142949.GA4487@gr8.dev> <20141107070257.GA29045@momjian.us> <20141107132503.GM1791@alvin.alvh.no-ip.org> <3189.1415372786@sss.pgh.pa.us> <20141107153053.GE4482@gr8.dev>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox