Re: BUG #7600: Database crash with data corruption

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: BUG #7600: Database crash with data corruption
Дата
Msg-id 50794C3E.3070608@ringerc.id.au
обсуждение исходный текст
Ответ на BUG #7600: Database crash with data corruption  (hankiewicz@gmail.com)
Ответы Re: BUG #7600: Database crash with data corruption  (Michał Hankiewicz <hankiewicz@gmail.com>)
Список pgsql-bugs
On 10/12/2012 09:35 PM, hankiewicz@gmail.com wrote:
> 5) after recovery was completed we have discovered that sequences on
> production database had wrong values

To follow up on Tom's explanation, if you're relying on sequences not
having "holes" then your design is dangerously mistaken. A simple
ROLLBACK throws away any IDs that were obtained from sequences in that
transaction.

If you're saying that the sequence is wrong in that it's LOWER than IDs
present in the table, then that's a problem.

--
Craig Ringer

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: Sorry to bother you. Please tell me exactly how the compiler was built ODBC
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: BUG #7595: terminate process in an unusual way