pgsql: Fix a pair of related issues with estimation of inequalities that

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix a pair of related issues with estimation of inequalities that
Date: 2005-03-26 20:55:40
Message-ID: 20050326205540.396075399B@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Fix a pair of related issues with estimation of inequalities that involve
binary-compatible relabeling of one or both operands. examine_variable
should avoid stripping RelabelType from non-variable expressions, so that
they will continue to have the correct type; and convert_to_scalar should
just use that type and ignore the other input type. This isn't perfect
but it beats failing entirely. Per example from Michael Fuhr.

Modified Files:
--------------
pgsql/src/backend/utils/adt:
selfuncs.c (r1.173 -> r1.174)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/selfuncs.c.diff?r1=1.173&r2=1.174)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2005-03-26 20:55:59 pgsql: Fix a pair of related issues with estimation of inequalities that
Previous Message seanc 2005-03-26 20:04:35 pgmemcache: pgmemcache pgmemcache.c