Re: select distinct, index not used

Поиск
Список
Период
Сортировка
От Grzegorz Jaśkiewicz
Тема Re: select distinct, index not used
Дата
Msg-id 2f4958ff0904160827r32200bb1ub8d73227480a5de9@mail.gmail.com
обсуждение исходный текст
Ответ на select distinct, index not used  (Thomas Guettler <hv@tbz-pariv.de>)
Список pgsql-general
wasn't that improved now in 8.4, and before that on 8.3 ?
still there are some funny things with distinct/group by .
for instance, try
select count(distinct foo) from bar; vs
select count(1) from (select distinct foo from bar) f;

:)

I am not sure it pg was able to use index for that in 8.2.

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

Предыдущее
От: Thomas Guettler
Дата:
Сообщение: select distinct, index not used
Следующее
От: Tom Lane
Дата:
Сообщение: Re: select distinct, index not used