Teach eval_const_expressions() to simplify an ArrayCoerceExpr to a constant
when its input is constant and the element coercion function is immutable
(or nonexistent, ie, binary-coercible case). This is an oversight in the
8.3 implementation of ArrayCoerceExpr, and its result is that certain cases
involving IN or NOT IN with constants don't get optimized as they should be.
Per experimentation with an example from Ow Mun Heng.
clauses.c (r126.96.36.199 -> r188.8.131.52)
pgsql-committers by date
|Next:||From: Dave Page||Date: 2008-08-26 08:10:51|
|Subject: stackbuilder - wizard: Don't require a mirror to be selected before |
|Previous:||From: Tom Lane||Date: 2008-08-26 02:16:32|
|Subject: pgsql: Teach eval_const_expressions() to simplify an ArrayCoerceExpr to |