Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 0BEF8650471 for ; Fri, 21 Nov 2008 21:56:53 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 46009-08 for ; Fri, 21 Nov 2008 21:56:50 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp100.biz.mail.mud.yahoo.com (smtp100.biz.mail.mud.yahoo.com [68.142.201.176]) by mail.postgresql.org (Postfix) with SMTP id 29BB965046E for ; Fri, 21 Nov 2008 21:56:49 -0400 (AST) Received: (qmail 63404 invoked from network); 22 Nov 2008 01:56:48 -0000 Received: from unknown (HELO ?192.168.5.110?) (rm_pg@76.202.60.199 with plain) by smtp100.biz.mail.mud.yahoo.com with SMTP; 22 Nov 2008 01:56:47 -0000 X-YMail-OSG: jxa4I0kVM1kT_ltKWT_7eWCUwIQ08.6FI9kNlqvV53rNq95Wp6n7eH9uEhkEHkFxK6btYH8XvWsvRrQRz2VAz1rvbA2qeP_snddmvw90IFb_RfuiZ0.5Lt5RHZwrs90Iw4dPuutIdweMDwThXWUQHok40A2jFewGF5NmqFaE X-Yahoo-Newman-Property: ymail-3 Message-ID: <492766DF.2050902@cheapcomplexdevices.com> Date: Fri, 21 Nov 2008 17:56:47 -0800 From: Ron Mayer User-Agent: Thunderbird 2.0.0.17 (X11/20080925) MIME-Version: 1.0 To: Zagato CC: pgsql-general@postgresql.org Subject: Re: Interval Format References: <98028b00811211739qb4a5e6bqf478bee397ea3596@mail.gmail.com> In-Reply-To: <98028b00811211739qb4a5e6bqf478bee397ea3596@mail.gmail.com> 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: 200811/1120 X-Sequence-Number: 140838 Zagato wrote: > I have som SQL that in 8.0.3 do: > # SELECT '32 hours'::INTERVAL; > interval > ----------------- > @ 1 day 8 hours > > And in 8.3.5 do: > seg_veh2=# SELECT '@ 32 hours'::INTERVAL; > interval > ------------ > @ 32 hours > > Why i unable to get my old style of interval, i really need to see the > day part.... im using datestyle german in both.... im try with "SET > IntervalStyle TO..." but i get this error: Even IntervalStyle won't help you here; since recent releases consider the values "1 day 8 hours" as distinct from "32 hours" (because they are at certain times of the year in some timezones where days are 25 hours, etc). > So.. how can i recover my "days" part... If you tell it what time of year you are thinking of this trick can work: dish=# set datestyle to german; SET dish=# select '2001-01-01'::timestamp + (interval '32 hours') - '2001-01-01'::timestamp; ?column? ----------------- @ 1 day 8 hours (1 row) > > Any help it appreciate... thanks :D