Skip site navigation (1) Skip section navigation (2)

Re: Inconsistant DOW...

From: "W(dot)B(dot)Hill" <bill(at)hillzaa1(dot)miniserver(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Inconsistant DOW...
Date: 2004-06-29 10:48:01
Message-ID: Pine.LNX.4.58.0406291031590.707@uvyymnn1.zvavfreire.pbz (view raw, whole thread or download thread mbox)
Lists: pgsql-general
On Mon, 28 Jun 2004, Tom Lane wrote:

> Richard Huxton <dev(at)archonet(dot)com> writes:
> > W.B.Hill wrote:
> >> SELECT d+'45 days ago'::interval FROM test;

Yep - it's the clock's going forward that does it. Doh! The quick'n'dirty
work around '45.3 days ago' was what I used but just a straight -45 is

> BTW, since 7.3 there has been a date-plus-interval operator yielding
> timestamp without time zone, which I believe Lockhart added specifically
> to avoid the unwanted promotion to timestamptz in this scenario.
> So the third answer is to update to something less ancient than PG 7.2.

Debian Stable. Sigh. IT support policies. Whimper!

In response to

pgsql-general by date

Next:From: Carlos Ojea CastroDate: 2004-06-29 10:59:47
Subject: Query using kylix (delphi)
Previous:From: Yoram BibermanDate: 2004-06-29 09:55:50
Subject: A few beginner's questions concerning concurrency control

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group