| От | Ron Mayer |
|---|---|
| Тема | Re: ctid access is slow |
| Дата | |
| Msg-id | 430CA45D.6030400@cheapcomplexdevices.com обсуждение исходный текст |
| Ответ на | Re: ctid access is slow ("Jim C. Nasby" <jnasby@pervasive.com>) |
| Список | pgsql-general |
Jim C. Nasby wrote: > > A better solution is to use a combination of a timestamp and a sequence. > Why both? Because it's possible for the clock to be set back (though > this is something best avoided), and a sequence will eventually roll > over. With the default MAXVALUE of a postgresql sequence (9 quintillion or so) you'd need a pretty amazingly fast cluster to roll one over, wouldn't you? Of course if you choose to truncate them to something smaller they might, but I'd see little benefit of both truncating and adding a timestamp.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера