Re: Constraint exclusion can't process simple constant expressions? - Mailing list pgsql-performance

From Tom Lane
Subject Re: Constraint exclusion can't process simple constant expressions?
Date
Msg-id 27886.1303353890@sss.pgh.pa.us
Whole thread Raw
In response to Re: Constraint exclusion can't process simple constant expressions?  (Josh Berkus <josh@agliodbs.com>)
List pgsql-performance
Josh Berkus <josh@agliodbs.com> writes:
>> timestamptz + interval is not immutable --- in fact, the particular
>> example you give (ts + '1 day') is certainly dependent on timezone
>> setting.

> Why not?  Given that the time zone will be the same for both the
> timestamptz and the interval, how would the result not be immutable?

The reason it depends on the timezone is that the result varies if
"plus one day" means crossing a DST boundary.

            regards, tom lane

pgsql-performance by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Constraint exclusion can't process simple constant expressions?
Next
From: Allen Sooredoo
Date:
Subject: %100 CPU on Windows Server 2003