Search Postgresql Archives

Re: "duplicate key violates unique constraint" error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux