Re: possible time change issue - known problem?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Dan Langille" <dan(at)langille(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: possible time change issue - known problem?
Date: 2003-04-07 15:37:11
Message-ID: 207.1049729831@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Dan Langille" <dan(at)langille(dot)org> writes:
> I forgot to ask: Does this explain why the problem occurs under 7.2.3
> but not 7.3.2?

Say again? AFAIR this issue has been with us from the beginning.
Certainly the "regression tests fail on every DST transition day"
syndrome has been around for as long as I've been using Postgres.

> Is the Right Thing To Do(tm) this:
> select current_date, current_date-1;
> instead of this:
> select current_date, (current_date - interval '1 day')::date;

The "current_date-1" locution is no doubt more efficient as well
as more likely to do what you want. Still, it'd be nice if the
other way worked.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jan Wieck 2003-04-07 15:38:32 Re: unable to dump database, toast errors
Previous Message pilsl 2003-04-07 15:36:05 listen/notify vs. sequence-model