Re: [BUGS] Bug #613: Sequence values fall back to previously chec
В списке pgsql-hackers по дате отправления:
| От | 'Ben Grimm' |
|---|---|
| Тема | Re: [BUGS] Bug #613: Sequence values fall back to previously chec |
| Дата | |
| Msg-id | 20020315094435.A22938@zaeon.com обсуждение |
| Ответ на | Re: [BUGS] Bug #613: Sequence values fall back to previously chec (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-hackers |
On Fri, 15 Mar 2002, Tom Lane wrote: > "'Ben Grimm'" <bgrimm@zaeon.com> writes: > > When these bugs are fixed there is still the issue of bug #3 that I > > came across. The one that I work around by resetting log_cnt to 0 when a > > backend initializes a sequence. It's this third bug that made the other > > two so apparent. Fixing them does not obviate the need to fix this one. > > What's bug #3? I don't recall a third issue. > The problem I was seeing before is that when the postmaster was shutdown properly, log_cnt in the sequence record was saved with whatever value it had at the time. So when it loaded from disk it would have a value greater than zero resulting in no XLogInsert until you'd exceded log_cnt calls to nextval. AFAICT, your patch fixes this problem, as I can't reproduce it now. Thanks! -- Ben
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера