Re: "duplicate key violates unique constraint" error

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: "duplicate key violates unique constraint" error
Дата
Msg-id 4AFBE472.6030408@archonet.com
обсуждение исходный текст
Ответ на "duplicate key violates unique constraint" error  ("tamanna madaan" <tamanna.madan@globallogic.com>)
Список pgsql-general
tamanna madaan wrote:
>
> I am getting this error  "duplicate key violates unique constraint"  in
> my slon.log on slave . This error is thrown while
>
> Slon is inserting a row in a table  on slave. This must be because of
> the reason that duplicate rows
>
> are being returned while querying sl_log_1 table.

And are there any errors in the PostgreSQL logs? Does this table contain
duplicates?

> I googled about the
> same problem and found that
>
> there is some bug in postgres due to which some table or index on that
> table gets corrupted. Due to this

What bug? Do you have a number or mailing-list reference?

>  I am using postgres 8.1.2 and slony 1.1.5 .
>
> Please suggest which version of postgres has fix for above mentioned
> problem.

I'm not sure it's clear what problem we're talking about here.

However, you are missing *16* updates for PostgreSQL (8.1.18) and four
for slony (1.1.9).

First step - get a fresh cup of tea or coffee, read through the release
notes between 8.1.2 and 8.1.18 and once you are happy upgrade. Do the
same for slony.

Then, if the slony sl_log table(s) have errors, I'd probably restart the
whole replication from scratch. I'd never be happy that I'd found all
the problems and corrected them.

If you are starting the replication from base, it might make sense to
upgrade slony to 1.2.17 while you're doing so.

HTH

--
  Richard Huxton
  Archonet Ltd

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

Предыдущее
От: Andreas 'ads' Scherbaum
Дата:
Сообщение: Re: [pgeu-general] pgday.eu
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: knowing which table/schema is going to be chosen