| От | Adam Rich |
|---|---|
| Тема | Re: limit-offset different result sets with same query |
| Дата | |
| Msg-id | 4A04A5CA.7030705@sbcglobal.net обсуждение исходный текст |
| Ответ на | limit-offset different result sets with same query (Emanuel Calvo Franco <postgres.arg@gmail.com>) |
| Список | pgsql-general |
Emanuel Calvo Franco wrote: > > Executing 'select * from datos limit 1 offset 150000' two times i have different > result sets. > When i execute 'explain analyze verbose <query>' i see that (as > expected) the seq scan > is occurring. > > > That's correct? Is logical that if the scan is sequential in the > physical table returns differents > data? > > I test it on 8.4 beta1 and 8.3.5 and 8.3.7 with the same results. > > Thanks in advance. > Emanuel, LIMIT and OFFSET are stable only when you have "ORDER BY" on unique values. Without that, the database is free to return the rows in whatever order it deems best, which gives unpredictable results when combined with LIMIT/OFFSET. Adam
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера