Re: Constraint exclusion can't process simple constant expressions?

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Constraint exclusion can't process simple constant expressions?
Date: 2011-04-21 01:58:56
Message-ID: 4DAF8F60.9050407@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Tom,

> 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?

--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Brendan Jurd 2011-04-21 02:05:29 Re: Constraint exclusion can't process simple constant expressions?
Previous Message Tom Lane 2011-04-21 00:48:49 Re: Constraint exclusion can't process simple constant expressions?