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

From Josh Berkus
Subject Re: Constraint exclusion can't process simple constant expressions?
Date
Msg-id 4DB06B04.4050204@agliodbs.com
Whole thread Raw
In response to Re: Constraint exclusion can't process simple constant expressions?  (Claudio Freire <klaussfreire@gmail.com>)
List pgsql-performance
Claudio,

> Am I missing something?

Yes, prepared statements.

This whole issue arises because CE is implemented purely on the planner
level.  The executor can treat Immutable and Stable functions as the
same; the planner cannot, AFAIK.

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

pgsql-performance by date:

Previous
From: Claudio Freire
Date:
Subject: Re: oom_killer
Next
From: Scott Marlowe
Date:
Subject: Re: oom_killer