Re: BUG #14107: Major query planner bug regarding subqueries and indices

From: Mathias Kunter <mathiaskunter(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #14107: Major query planner bug regarding subqueries and indices
Date: 2016-04-28 19:07:00
Message-ID: 629ecf23-b7b2-2d73-6792-150b111e83ab@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

> Seems like it. I've asked folks on IRC for help, and it was confirmed the
> bug exists since 8.2

So, as it currently stands, queries of the following synopsis are de
facto unusable with PostgreSQL, as these will always ignore any existing
indices and trigger a full table scan instead:

SELECT ... FROM a WHERE a.x = ? OR a.y IN (...);

SELECT ... FROM a JOIN b ON (...) WHERE a.x = ? OR b.y = ?;

The following SQL fiddle demonstrates the bug:
http://sqlfiddle.com/#!15/ab714/2

Does anybody care? Shouldn't something like this be fixed ASAP??

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Fabien COELHO 2016-04-28 19:36:56 Re: [BUGS] Breakage with VACUUM ANALYSE + partitions
Previous Message Nick Cleaton 2016-04-28 19:04:21 Re: streaming replication master can fail to shut down