| От | Tom Lane |
|---|---|
| Тема | Re: Subject: bool / vacuum full bug followup part 2 |
| Дата | |
| Msg-id | 15976.1020703443@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Subject: bool / vacuum full bug followup part 2 (Scott Marlowe <scott.marlowe@ihs.com>) |
| Список | pgsql-general |
Scott Marlowe <scott.marlowe@ihs.com> writes:
> Since postgresql 7.2.1 refuses to make an index of any kind other than
> btree, what is the answer? no indexes? While single column indexes may
> seem wasteful, remember that the boole may be stored in a table that has
> very large tuples, and a sequential scan of such a table could be quite
> slow, or there may be a situation where a tiny percentage of the booles
> are one setting while most are the other, like an approval system for
> online content.
You could use a partial index for the latter case. If the column is
about fifty-fifty then any kind of index is a waste of space...
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера