Re: BUG #4565: nextval not updated during wal replication, leading to pk violations

From: Marc Schablewski <ms(at)clickware(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4565: nextval not updated during wal replication, leading to pk violations
Date: 2008-12-10 09:51:44
Message-ID: 493F9130.1050007@clickware.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Tom Lane wrote:
> Marc Schablewski <ms(at)clickware(dot)de> writes:
>
>> cache_value is set to one for all sequences. As far as I can tell, they
>> were all created by a plain CREATE SEQUENCE seq_name and no other
>> settings changed. And as we found out later this "loss of information"
>> hit some indexes as well.
>>
>
>
>> We took a fresh backup yesterday and again we saw that only the last WAL
>> generated during the backup run was restored on our backup system. I'm
>> sure that this is the real problem.
>>
>
> This is beginning to sound like an error in your backup/restore
> procedures. Please describe exactly what you're doing.
>
> regards, tom lane
>
>
I'm sorry. It was all my fault. If been a bit to picky about the files I
copy, and I didn't copy the files directly under the cluster directory.
I thought, there are just the config files, so what's the point. But
this way of course, I didn't copy the backup_label either. It was never
there when I looked, because it was either before or after running a
backup. Reading and especially understanding the manual sometimes helps.
doh!

Now everything seems to work fine, but we are still testing. At least
what we see in the logs is more reasonable. Now the .backup file is
requested first, then the WALs. There is one strange thing left, though.
The server first requests the second WAL, then the first one, then the
second again and then it processes them in order (second, third, fourth,
...). Is this normal?

I hope I didn't distract you from your regular work too much. Thanks again.

Marc

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Oleg Serov 2008-12-10 09:54:27 Bug in plpgsql, when using NEW with composite field value.
Previous Message Guillaume Smet 2008-12-09 22:55:44 Re: download PostgreSQL 8.0.2