Re: Puzzling planner choice (non-urgent)

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Puzzling planner choice (non-urgent)
Дата
Msg-id 200208051720.31517.dev@archonet.com
обсуждение исходный текст
Ответ на Re: Puzzling planner choice (non-urgent)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Monday 05 Aug 2002 3:28 pm, Tom Lane wrote:
> Richard Huxton <dev@archonet.com> writes:
> > What I don't understand is the seq-scan on companies.co_id since it has a
> > unique index on it and *can't* match more than once for a given row while
> > looping through orders.
>
> Since the table is evidently only 2 pages long, the planner figures it's
> cheaper to read it all than to touch both the index and the table.

Ah - seems like a good guess Tom. I've upped companies to 1000 entries and the
planner switches to an index-scan.

- Richard Huxton

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

Предыдущее
От: "Henrik Steffen"
Дата:
Сообщение: psql client
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: O'Reilly Open Source Convention Report