Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id E06BA633B7F for ; Mon, 9 Mar 2009 16:14:16 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 79702-01 for ; Mon, 9 Mar 2009 16:14:13 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from polaris.pinpointresearch.com (66-7-238-130.static-ip.telepacific.net [66.7.238.130]) by mail.postgresql.org (Postfix) with ESMTP id D03C4633B15 for ; Mon, 9 Mar 2009 16:14:09 -0300 (ADT) Received: from [192.168.1.179] (betelgeuse.pinpointresearch.com [192.168.1.179]) by polaris.pinpointresearch.com (Postfix) with ESMTP id ACB48E00EC82; Mon, 9 Mar 2009 12:14:07 -0700 (PDT) Message-ID: <49B56A7F.6040004@pinpointresearch.com> Date: Mon, 09 Mar 2009 12:14:07 -0700 From: Steve Crawford User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: DM CC: pgsql-admin@postgresql.org Subject: Re: Urgent PST time changing tonight References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200903/113 X-Sequence-Number: 31613 DM wrote: > Hi All, > > PST time changing tonight, I am not sure if this is going to affect > the database.... IF you are up-to-date on your TZ files the database itself should be fine. But external processing is another matter - especially if you have processes that assume conventions from previous PG versions. For example: PG 7.4 (one day = 24 hours): select now(); now ------------------------------- 2009-03-09 12:05:42.533139-07 select now()-'2 days'::interval; ?column? ------------------------------- 2009-03-07 11:05:43.963526-08 But in 8.3 (day interval is DST aware): select now(); now ------------------------------- 2009-03-09 12:04:21.813654-07 select now()-'2 days'::interval; ?column? ------------------------------- 2009-03-07 12:04:47.693384-08 That's just in the database itself and without cross-country processing (i.e.: if you have somewhat synchronized processes that assume that New York is 3 hours ahead of San Francisco you can have problems if you don't consider that New York changed to DST 3 hours ahead of San Francisco). Then there are the scripts that calculate dates externally for feeding into your database-backed processes (for fun, try "-d yesterday" and "-d tomorrow" in most versions of the "date" command in the vicinity of DST changes). Cheers, Steve