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 26139.1303346929@sss.pgh.pa.us
Whole thread Raw
In response to Constraint exclusion can't process simple constant expressions?  (Josh Berkus <josh@agliodbs.com>)
Responses Re: Constraint exclusion can't process simple constant expressions?  (Josh Berkus <josh@agliodbs.com>)
List pgsql-performance
Josh Berkus <josh@agliodbs.com> writes:
> I understand why now() is a problem for CE, but I'd expect that it could
> at least handle a simple expression with immutable outputs.

timestamptz + interval is not immutable --- in fact, the particular
example you give (ts + '1 day') is certainly dependent on timezone
setting.

            regards, tom lane

pgsql-performance by date:

Previous
From: Josh Berkus
Date:
Subject: Constraint exclusion can't process simple constant expressions?
Next
From: Josh Berkus
Date:
Subject: Re: Constraint exclusion can't process simple constant expressions?