Re: Regression from 8.4 to 9.1.2/9.1.3: Optimizing filters on constants in unions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Claus Stadler <cstadler(at)informatik(dot)uni-leipzig(dot)de>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Regression from 8.4 to 9.1.2/9.1.3: Optimizing filters on constants in unions
Date: 2012-03-16 17:17:46
Message-ID: 390.1331918266@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Claus Stadler <cstadler(at)informatik(dot)uni-leipzig(dot)de> writes:
> Filtering a Union on constant custom type:
> ...
> Expected: Query optimizer should discard the scan as filter cannot be
> satisfied.

I've applied a patch for this. Thanks for the report!

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Alex Hunsaker 2012-03-16 17:48:24 Re: BUG #6511: calling spi_exec_query from non-main package, results in: couldn't fetch $_TD
Previous Message aren 2012-03-16 15:03:00 BUG #6535: LEFT JOIN on large table is altering data