pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Timokhin Maxim <ncx2@yandex.com>
To: pgsql-general@postgresql.org
Subject: Re: duplicate key value violates unique constraint and duplicated records
Date: Thu, 29 Jun 2017 16:38:19 -0700
Message-ID: <d8b9a58e-fc30-80d1-3dfa-c1955951ff04@aklaver.com> (raw)
In-Reply-To: <2150831498728539@web17j.yandex.ru>
References: <2150831498728539@web17j.yandex.ru>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

On 06/29/2017 02:28 AM, Timokhin Maxim wrote:
> Hello.
> We are in process moving to new db from 9.4.8 -> 9.6.3.1. When we did it 
> our application started to throw exception "duplicate key value violates 
> unique constraint" during doing INSERT:

How did move from 9.4.8 --> 9.6.3.1?

Also where are you getting Postgres from? I ask because 9.6.3.1 is not 
a community version or was that just a typo?



> Everything would be not bad if in the table weren't appeared duplicated 
> records in url column.
> Any idea how is it possible?
> Thank you!
> -- 
> Timokhin 'maf' Maxim


-- 
Adrian Klaver
adrian.klaver@aklaver.com


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



view thread (42+ messages)  latest in thread

Message-ID: <d8b9a58e-fc30-80d1-3dfa-c1955951ff04@aklaver.com>
Permalink:  ../d8b9a58e-fc30-80d1-3dfa-c1955951ff04@aklaver.com/
Also on:    postgresql.org/message-id/d8b9a58e-fc30-80d1-3dfa-c1955951ff04@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, ncx2@yandex.com
  Subject: Re: duplicate key value violates unique constraint and duplicated records
  In-Reply-To: <d8b9a58e-fc30-80d1-3dfa-c1955951ff04@aklaver.com>
  References: <2150831498728539@web17j.yandex.ru> <d8b9a58e-fc30-80d1-3dfa-c1955951ff04@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox