От: Kevin Grittner
Тема: Re: slow index lookup
Дата: ,
Msg-id: 4C21F9280200002500032904@gw.wicourts.gov
(см: обсуждение, исходный текст)
Ответ на: Re: slow index lookup  (Anj Adu)
Список: pgsql-performance

Скрыть дерево обсуждения

slow index lookup  (Anj Adu, )
 Re: slow index lookup  (Alvaro Herrera, )
  Re: slow index lookup  (Anj Adu, )
   Re: slow index lookup  ("Joshua D. Drake", )
    Re: slow index lookup  (Anj Adu, )
   Re: slow index lookup  ("Joshua D. Drake", )
  Re: slow index lookup  (Tom Lane, )
   Re: slow index lookup  (Anj Adu, )
   Re: slow index lookup  (Anj Adu, )
    Re: slow index lookup  ("Kevin Grittner", )

Anj Adu <> wrote:

> The combination index works great. Would adding the combination
> index guarantee that the optimizer will choose that index for
> these kind of queries involving the columns in the combination. I
> verified a couple of times and it picked the right index. Just
> wanted to make sure it does that consistently.

It's cost based -- as long as it thinks that approach will be
faster, it will use it.

-Kevin


В списке pgsql-performance по дате сообщения:

От: Bruce Momjian
Дата:
Сообщение: Re: PostgreSQL as a local in-memory cache
От: Dimitri Fontaine
Дата:
Сообщение: Re: PostgreSQL as a local in-memory cache