Ian, Thank you very much for your reply. Really appreciated it. Thank you Renato Renato Oliveira Systems Administrator e-mail: renato.oliveira@xxxxxxxxxxx Tel: +44 (0)1763 260811 Fax: +44 (0)1763 262410 http://www.grant.co.uk/ Grant Instruments (Cambridge) Ltd Company registered in England, registration number 658133 Registered office address: 29 Station Road, Shepreth, CAMBS SG8 6GB UK -----Original Message----- From: Ian Lea [mailto:ian.lea@xxxxxxxxx] Sent: 05 May 2010 11:36 To: Renato Oliveira Cc: pgsql-admin@xxxxxxxxxxxxxx Subject: Re: "duplicate key value violates unique constraint" ERROR The most likely cause is surely application error: your application is attempting to insert rows into a table and those new rows have the primary key set to a value that is already present for that table. Could be the app isn't checking properly before doing an insert (or update), could be you are trying to load data twice, could be whatever is generating the data in the first place is generating duplicates, etc. Seems unlikely that the exception itself would cause your system to slow down but whatever is causing the exception (trying to load everything multiple times?) might be. -- Ian. On Wed, May 5, 2010 at 11:22 AM, Renato Oliveira <renato.oliveira@xxxxxxxxxxx> wrote: > Dear all, > > > > I am sorry to have another post. > > I have been following a problem which has been growing fast on our system. > > > > At the beginning I thought it was related to load on PG server, then I > thought it was load on the switch/network, now I don't know. > > > > We seem to get loads of Exception errors and when I look at the Postgres Log > there are loads of "duplicate key value violates unique constraint" > > > > I have researched on the Internet and some posts say: Reindex, some say bug > in JIRA. > > Some say: Your primary key index isn't in sync. > > > > Have you guys suffered from this problem before, or have seen it anywhere? > > > > From 30th of April to today I got 1400 errors. > > What do you guys think might cause this behavior? > > I also think it is causing the system to slow down a bit, do you think that > might be possible? > > > > Very much appreciate any help, insight, opinion or anything you could think. > > > > Thank you very much > > > > > > Best regards > > > > Renato > > > > > Renato Oliveira > Systems Administrator > e-mail: renato.oliveira@xxxxxxxxxxx > > Tel: +44 (0)1763 260811 > Fax: +44 (0)1763 262410 > www.grant.co.uk > > Grant Instruments (Cambridge) Ltd > > Company registered in England, registration number 658133 > > Registered office address: > 29 Station Road, > Shepreth, > CAMBS SG8 6GB > UK > > > > > > > > P Please consider the environment before printing this email > > CONFIDENTIALITY: The information in this e-mail and any attachments is > confidential. It is intended only for the named recipients(s). If you are > not the named recipient please notify the sender immediately and do not > disclose the contents to another person or take copies. > > VIRUSES: The contents of this e-mail or attachment(s) may contain viruses > which could damage your own computer system. Whilst Grant Instruments > (Cambridge) Ltd has taken every reasonable precaution to minimise this risk, > we cannot accept liability for any damage which you sustain as a result of > software viruses. You should therefore carry out your own virus checks > before opening the attachment(s). > > OpenXML: For information about the OpenXML file format in use within Grant > Instruments please visit our website -----Original Message----- P Please consider the environment before printing this email CONFIDENTIALITY: The information in this e-mail and any attachments is confidential. It is intended only for the named recipients(s). If you are not the named recipient please notify the sender immediately and do not disclose the contents to another person or take copies. VIRUSES: The contents of this e-mail or attachment(s) may contain viruses which could damage your own computer system. Whilst Grant Instruments (Cambridge) Ltd has taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage which you sustain as a result of software viruses. You should therefore carry out your own virus checks before opening the attachment(s). OpenXML: For information about the OpenXML file format in use within Grant Instruments please visit our http://www.grant.co.uk/Support/openxml.html -- Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin