Re: BUG #7600: Database crash with data corruption

From: Michał Hankiewicz <hankiewicz(at)gmail(dot)com>
To: Craig Ringer <ringerc(at)ringerc(dot)id(dot)au>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #7600: Database crash with data corruption
Date: 2012-10-15 08:17:44
Message-ID: CAMpaLZp+ALrSyt27vtJuvW9wOc4u4TZU30Kp78gV4avo3w_DzA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

You misunderstand me.
According to the server logs I have sent in the first message process
received signal 2 (it is SIGINT) and according to the documentation this
signal should not couse server crash. Wrong values of sequences does not
mean hole in generated values, but sequence started to generate the same
values once again causing unique constraint violation.

regards
Michał Hankiewicz

On Sat, Oct 13, 2012 at 1:10 PM, Craig Ringer <ringerc(at)ringerc(dot)id(dot)au> wrote:

> On 10/12/2012 09:35 PM, hankiewicz(at)gmail(dot)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
>

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message John Nash 2012-10-15 08:22:00 WebSphere Application Server support for postgres
Previous Message Heikki Linnakangas 2012-10-15 08:06:26 Re: Fwd: race in pg_ctl start -w