| От | Tom Lane |
|---|---|
| Тема | Re: Timestamp indicies not being used! |
| Дата | |
| Msg-id | 627.1248020430@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Timestamp indicies not being used! (Andreas Kretschmer <akretschmer@spamfence.net>) |
| Ответы |
[SOLVED] Re: Timestamp indicies not being used!
|
| Список | pgsql-general |
Andreas Kretschmer <akretschmer@spamfence.net> writes:
> Sam Mason <sam@samason.me.uk> wrote:
>> Based on your query, I think you want a multi-column index---probably on
>> (id,zulu_timestamp).
>>
>> The problem with just having an index on either column is that it's
>> difficult to combine them and PG hence just thinks that it will be
> Since 8.1 PG can do an bitmap index scan using both indexes...
... which produces an unordered result, so it's pretty useless for this
problem. I concur with Sam's suggestion.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера