Re: Index not used on join with inherited tables

Поиск
Список
Период
Сортировка
От Sebastian Böck
Тема Re: Index not used on join with inherited tables
Дата
Msg-id 429B4117.1050103@freenet.de
обсуждение исходный текст
Ответ на Re: Index not used on join with inherited tables  (Josh Berkus <josh@agliodbs.com>)
Список 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



В списке pgsql-performance по дате отправления:

Предыдущее
От: Michael Engelhart
Дата:
Сообщение: Re: sequential scan performance
Следующее
От: Steve Atkins
Дата:
Сообщение: Re: sequential scan performance