[PERFORM] Index not used on join with inherited tables

2005-05-30 Thread Sebastian Böck
Hi all, I'm having another problem with a query that takes to long, because the appropriate index is not used. I found some solutions to this problem, but I think Postgres should do an index scan in all cases. To show the problem I've attached a small script with a testcase. Thanks in adva

Re: [PERFORM] Index not used on join with inherited tables

2005-05-30 Thread Sebastian Böck
Josh Berkus wrote: Sebastian, I'm having another problem with a query that takes to long, because the appropriate index is not used. PostgreSQL is not currently able to push down join criteria into UNIONed subselects. It's a TODO. And the appends in a "SELECT * from parent" are UNIONs,