Re: Slow queries when ORDER BY ... DESC with table inheritance (no index scan backwards)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Slow queries when ORDER BY ... DESC with table inheritance (no index scan backwards)
Дата
Msg-id 22664.1227033709@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Slow queries when ORDER BY ... DESC with table inheritance (no index scan backwards)  ("DANG Trieu" <tdang@miranda.com>)
Список pgsql-general
"DANG Trieu" <tdang@miranda.com> writes:
> On the "abstract" table (event):
> gsmlog3_30=# explain analyze select * from event where timestamp >
> 1226952050683 order by timestamp desc limit 10;

Turning on constraint exclusion might help here, if you have appropriate
check constraints for the range of timestamp attached to all the tables.

            regards, tom lane

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