Re: Query not using index

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Query not using index
Дата
Msg-id Pine.BSF.4.21.0105101112500.92606-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Query not using index  (ryan@paymentalliance.net)
Список pgsql-general
Have you vacuum analyzed recently and what does
explain show for the query?

On Thu, 10 May 2001 ryan@paymentalliance.net wrote:

> Here's the query:
>
> SELECT
> cart_row_id
> FROM
> pa_shopping_cart
> WHERE
> order_id = 20;
> [ ... ]
> There is an index on:
> just order_id
> just order_id and cart_row_id
> and a PK on cart row_id
>
> I don't understand why it's not using one of these indexes!
> Please post your responses to the group - my email is down.


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

Предыдущее
От: ryan@paymentalliance.net
Дата:
Сообщение: Query not using index
Следующее
От: David Wheeler
Дата:
Сообщение: Custom Constraint