| От | Simon Riggs |
|---|---|
| Тема | Re: Create an index with a sort condition |
| Дата | |
| Msg-id | 1143662264.32384.301.camel@localhost.localdomain обсуждение исходный текст |
| Ответ на | Create an index with a sort condition ("sylsau" <sylsau14@gmail.com>) |
| Ответы |
Re: Create an index with a sort condition
|
| Список | pgsql-general |
On Wed, 2006-03-29 at 03:14 -0800, sylsau wrote: > I use PostgreSQL 8.1 and I would like create and index on a table's > field with a sort condition on this field. > For example, I have a table named books and I want create an index on > the fields title and id_book with an order by id_book descendant. > > I know how to create the index without this condition : > > create index book_index on books(id_book, title); > The index is already sorted and can be scanned forwards or backwards. Perhaps you want CLUSTER? Best Regards, Simon Riggs
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера