From: Tom Lane <tgl@sss.pgh.pa.us>
To: Josh Berkus <josh@agliodbs.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Constraint exclusion can't process simple constant expressions?
Date: Wed, 20 Apr 2011 20:48:49 -0400
Message-ID: <26139.1303346929@sss.pgh.pa.us> (raw)
In-Reply-To: <4DAF70FD.7000609@agliodbs.com>
References: <4DAF70FD.7000609@agliodbs.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, josh@agliodbs.com
Subject: Re: Constraint exclusion can't process simple constant expressions?
In-Reply-To: <26139.1303346929@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox