| От | Hannu Krosing |
|---|---|
| Тема | Re: Implicit order-by in Postgresql? |
| Дата | |
| Msg-id | 3B26564E.2F7D82CE@tm.ee обсуждение исходный текст |
| Ответ на | Implicit order-by in Postgresql? ("earthlink" <NOSPAMnews@tinyvital.com>) |
| Список | pgsql-hackers |
earthlink wrote: > > Frequently one wants a data set returned in the same order as the > index used in the query. Informix (at least) has implicit order-by, > which means that the data will be returned in collating order if the > query forces use of the appropriate index. > > Does Postgresql do this? If data is fetched by walking an index, then , yes it produces an implicit order. Just don't count on it to stay that way - the use of a particular index depends on too many things. > If not, does an Order-by force a sort even if an index has the correct > order to satisfy the order-by? Dropping unneeded sort node from a query tree was one of the earliest optimisations in postgresql. --------------- Hannu
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера