| От | Ken Geis |
|---|---|
| Тема | Re: bad estimates / non-scanning aggregates |
| Дата | |
| Msg-id | 3F4EC1D0.5010503@speakeasy.org обсуждение исходный текст |
| Ответ на | Re: bad estimates / non-scanning aggregates (Bruno Wolff III <bruno@wolff.to>) |
| Ответы |
Re: bad estimates / non-scanning aggregates
|
| Список | pgsql-performance |
Bruno Wolff III wrote: >>Not according to the optimizer! Plus, this is not guaranteed to return >>the correct results. > > For it to be fast you need an index on (stock_id, price_date) so that > you can use an index scan. I already said that such an index existed. In fact, it is the primary key of the table. And yes, I *am* analyzed! > The answers are guarenteed to be correct. See: > http://developer.postgresql.org/docs/postgres/sql-select.html#SQL-DISTINCT That's good to know. Thanks! Ken
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера