Re: Problem with inherited tables vs query planning

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problem with inherited tables vs query planning
Дата
Msg-id 17674.1179456557@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Problem with inherited tables vs query planning  ("Dave Golombek" <daveg@blackducksoftware.com>)
Ответы Re: Problem with inherited tables vs query planning  ("Dave Golombek" <daveg@blackducksoftware.com>)
Список pgsql-general
"Dave Golombek" <daveg@blackducksoftware.com> writes:
> Is there a way I can reformulate the query to help the planner use the
> indices?

Use 8.2.  Also put an index on the base table, not only the children ---
the forced seqscan on the base weighs down the cost estimate for the
plan you would like to have.  (With sufficiently large child tables,
that might not matter, but it sure does for this toy example.)

            regards, tom lane

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

Предыдущее
От: "Dave Golombek"
Дата:
Сообщение: Problem with inherited tables vs query planning
Следующее
От: "Robert James"
Дата:
Сообщение: Postgres / Jaro Winkler fuzzy string matching