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

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Brendan Jurd <direvus(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Constraint exclusion can't process simple constant expressions?
Date: 2011-04-21 02:13:07
Message-ID: 4DAF92B3.60806@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance


> Emphasis on "always". If the result of the function, given the same
> argument values, can be different after a SET, then it doesn't qualify
> for immutability. At least, that's my understanding.

Hmmmm. But within the context of the query plan itself, the results of
that expression are going to be constant. That is, for a given query
execution, it's always going to be the same comparison.

So this goes back to my original assertion that CE can't be fixed ...

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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message mark 2011-04-21 02:14:35 rant ? check the BBWC
Previous Message Brendan Jurd 2011-04-21 02:05:29 Re: Constraint exclusion can't process simple constant expressions?