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

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Claudio Freire <klaussfreire(at)gmail(dot)com>
Cc: Brendan Jurd <direvus(at)gmail(dot)com>, 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 17:36:04
Message-ID: 4DB06B04.4050204@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Scott Marlowe 2011-04-21 20:04:00 Re: oom_killer
Previous Message Claudio Freire 2011-04-21 16:37:39 Re: oom_killer