Re: Index not used on join with inherited tables

From: Sebastian Böck <sebastianboeck(at)freenet(dot)de>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Index not used on join with inherited tables
Date: 2005-05-30 16:36:39
Message-ID: 429B4117.1050103@freenet.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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, aren't they?

> Also, if you're using inherited tables, it's unnecessary to use UNION; just
> select from the parent.

Yes, but then no index is used...

Sebastian

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Steve Atkins 2005-05-30 16:53:40 Re: sequential scan performance
Previous Message Michael Engelhart 2005-05-30 16:33:28 Re: sequential scan performance