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

Поиск
Список
Период
Сортировка
От Marc Schablewski
Тема Re: BUG #4565: nextval not updated during wal replication, leading to pk violations
Дата
Msg-id 493F9130.1050007@clickware.de
обсуждение исходный текст
Ответ на Re: BUG #4565: nextval not updated during wal replication, leading to pk violations  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: BUG #4565: nextval not updated during wal replication, leading to pk violations  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Tom Lane wrote:
> Marc Schablewski <ms@clickware.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

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

Предыдущее
От: "Guillaume Smet"
Дата:
Сообщение: Re: download PostgreSQL 8.0.2
Следующее
От: "Oleg Serov"
Дата:
Сообщение: Bug in plpgsql, when using NEW with composite field value.