Re: BUG #10207: Simple select query returns duplicate row - Critical issue
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: BUG #10207: Simple select query returns duplicate row - Critical issue |
| Дата | |
| Msg-id | 29145.1399138310@sss.pgh.pa.us обсуждение |
| Ответ на | Re: BUG #10207: Simple select query returns duplicate row - Critical issue (Marko Tiikkaja <marko@joh.to>) |
| Список | pgsql-bugs |
Marko Tiikkaja <marko@joh.to> writes: > On 5/3/14, 1:04 PM, vetri_2020@yahoo.com wrote: >> I'd encountered an issue in select query when using order by and limit. >> >> When I sort by a column which have same values for some data,then the row >> that appears in first page also appears in next page. > This is not a bug. The sort order of identical values is undefined > unless disambiguated by adding more sort expressions. Somebody else asked this identical question just a couple days ago: http://www.postgresql.org/message-id/flat/20140428192320.2661.1832@wrigleys.postgresql.org It's not random in the sense of having any indeterminate behavior, but the output ordering of equal-keyed elements *can* change depending on the LIMIT value. regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера