Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XmlVL-0005KC-V2 for pgsql-bugs@arkaria.postgresql.org; Fri, 07 Nov 2014 15:31:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XmlVL-00025Y-Et for pgsql-bugs@arkaria.postgresql.org; Fri, 07 Nov 2014 15:31:15 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XmlVK-00025R-CI for pgsql-bugs@postgresql.org; Fri, 07 Nov 2014 15:31:14 +0000 Received: from mail2.gmhwh.org ([216.49.179.92]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XmlVG-0004C3-5a for pgsql-bugs@postgresql.org; Fri, 07 Nov 2014 15:31:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ldschurch.org; h=date : from : to : cc : subject : message-id : reply-to : references : mime-version : content-type : in-reply-to; s=nov2012; bh=fmdoZEU9bkanPfe4LGm28Rlnq8B03RTJUC3j86Fh5yo=; b=ige/D9+nhNLn+0TOGeCZpjyOPVnvojykoQaYUEI8EHahgVtIMKmUwwdG7HfpZwT2mLNO jKlxMtCTowFZxWdG9bLWB6ubvD71GzdU2ZRQYUUlv7MKQVgBGlcQ2hWOVSPqPKOg/wT2 l5ij6Qk3aBnVN0k4RSnKt7mai/oOZKQXQMnaYzyf0SOvyC2z5aL4dYyeedRy5x3CMiTy Zrxl1x0xq35vNAlCDUwXFBJ6jzJaY9sNKWLknijtwI3ykDBHWqls2EcmhqsfDvoVEVMB vJs3l8QI5NugCes3n4S2tFivuoFdk8+Jo9UNqxGUd/h7tCfOSz/7eBuCAljNBGXodYHj hw== Received: from W12116.ldschurch.org (W12116.ldschurch.org [10.97.40.116]) by mail2.gmhwh.org (8.14.5/8.14.5) with ESMTP id sA7FUteH006978 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Fri, 7 Nov 2014 08:30:55 -0700 Received: from gr8.dev (10.98.250.245) by mail.ldschurch.org (10.97.40.116) with Microsoft SMTP Server (TLS) id 14.3.195.1; Fri, 7 Nov 2014 08:30:55 -0700 Date: Fri, 7 Nov 2014 08:30:53 -0700 From: Bruce Hunsaker To: Tom Lane CC: Alvaro Herrera , Bruce Momjian , Bruce Hunsaker , Magnus Hagander , , pgsql-bugs Subject: Re: BUG #11883: Year 1500 not treated as leap year when it was a leap year Message-ID: <20141107153053.GE4482@gr8.dev> Reply-To: References: <20141105175607.26929.23188@wrigleys.postgresql.org> <20141105180225.GB10345@momjian.us> <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> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <3189.1415372786@sss.pgh.pa.us> User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [10.98.250.245] X-Disclaimer: True X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52, 1.0.28, 0.0.0000 definitions=2014-11-07_06:2014-11-07,2014-11-07,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1411070125 X-Pg-Spam-Score: -1.3 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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