Re: sequence skips 30 values, how?
От
Bill Moran
Тема
Re: sequence skips 30 values, how?
Дата
Msg-id
20070131085146.c891c420.wmoran@collaborativefusion.com
Ответ на
sequence skips 30 values, how? (Geoffrey)
Список
Дерево обсуждения
sequence skips 30 values, how? Geoffrey <esoteric@3times25.net>
Re: sequence skips 30 values, how? DelGurth <delgurth@gmail.com>
Re: sequence skips 30 values, how? DelGurth <delgurth@gmail.com>
Re: sequence skips 30 values, how? Tom Lane <tgl@sss.pgh.pa.us>
Re: sequence skips 30 values, how? "Angva" <angvaw@gmail.com>
Re: sequence skips 30 values, how? Jorge Godoy <jgodoy@gmail.com>
Re: sequence skips 30 values, how? Bill Moran <wmoran@collaborativefusion.com>
Re: sequence skips 30 values, how? "A. Kretschmer" <andreas.kretschmer@schollglas.com>
Re: sequence skips 30 values, how? Alvaro Herrera <alvherre@commandprompt.com>
Re: sequence skips 30 values, how? Tom Lane <tgl@sss.pgh.pa.us>
Re: sequence skips 30 values, how? Geoffrey <esoteric@3times25.net>
Re: sequence skips 30 values, how? Tom Lane <tgl@sss.pgh.pa.us>
Re: sequence skips 30 values, how? Alban Hertroys <alban@magproductions.nl>
Re: sequence skips 30 values, how? Markus Schiltknecht <markus@bluegap.ch>
In response to Geoffrey : > We are trying to track down an issue with our PostgreSQL application. > We are running PostgreSQL 7.4.13 on Red Hat Enterprise ES 3. > > We have a situation where the postgres backend process drops core and > dies. We've tracked this to an unusual situation where a sequence value > that is being created during the process that is causing the core file > generation. The thing that is bizarre is that the sequence value skips > 30+ entries. > > How is this even possible? Any suggestions would be greatly appreciated. Don't know why your workers are dropping cores: backtraces and the like would probably help sort that out. However, when a transaction requests a new sequence, then aborts (for whatever reason) that sequence isn't going to back up. My understanding is that the overhead to making sequences transaction aware and able to avoid gaps is more than anyone has determined the benefit to be. What is the problem with gaps? If you're afraid of running out of numbers, switch to BIGSERIAL. -- Bill Moran Collaborative Fusion Inc.
В списке pgsql-general по дате отправления
От: Merlin Moncure
Дата: