Re: Index Scanning

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Index Scanning
Дата
Msg-id 459B8B87.2020802@archonet.com
обсуждение исходный текст
Ответ на Index Scanning  (Enrico <scotty@linuxtime.it>)
Список pgsql-general
Enrico wrote:
> Hi, I have this query
>
> select TB.id_int,TR.codice_art,importo,cod_iva,prezzo,qta as qta
> from bolle_carico_testata TB inner join tmp_righe_bolle_carico TR on (TB.id_bolla_rem=TR.id_bolla_rem);
[snip plan]
> Can anybody tell me why I have two Seq scans instead of two Ind. scan?
> And how can I do to have two ind. scan?

You're fetching all the rows from both tables - what would an index scan
gain you?

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: Enrico
Дата:
Сообщение: Index Scanning
Следующее
От: Luca Ferrari
Дата:
Сообщение: database design and refactoring