| От | Tom Lane |
|---|---|
| Тема | Re: timestamp fields and order by? |
| Дата | |
| Msg-id | 27609.1262816036@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: timestamp fields and order by? (Steve Wampler <swampler@noao.edu>) |
| Список | pgsql-general |
Steve Wampler <swampler@noao.edu> writes:
> Tom Lane wrote:
>> Even so, though, I think it would be quite foolish to design an
>> application around the assumption that the timestamps of successive
>> insertions will be distinguishable. Put in a serial column.
> I'll do that. I was a bit surprised to see that the sort wasn't
> stable, however. Was that intentional for performance, or just
> not considered worth the effort?
I think our sort code isn't stable --- it's a quicksort which usually
isn't. But in any case the physical tuple locations aren't guaranteed
to be strictly increasing, so changing the sort code wouldn't make it
safe.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера