Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQj0z-0003oo-Uo for pgsql-general@arkaria.postgresql.org; Thu, 29 Jun 2017 23:38:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dQj0z-0000N7-Cr for pgsql-general@arkaria.postgresql.org; Thu, 29 Jun 2017 23:38:25 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dQj0x-0000LD-LR for pgsql-general@postgresql.org; Thu, 29 Jun 2017 23:38:23 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dQj0v-0004sO-Er for pgsql-general@postgresql.org; Thu, 29 Jun 2017 23:38:22 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id C9ABE20D2A; Thu, 29 Jun 2017 19:38:20 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Thu, 29 Jun 2017 19:38:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=gXfAVqh85+52Ro4YCN D1CTkDRAKrHFDoqt+IGTh7iP4=; b=cLLiExOv/240NBZLaSy7Y86j2t4G7jefjb OUB37cyXU44Q6GRCZJMBDw1ufhvujQrWRbZALtehunqI+iqsjH3MbCSgHIwlXWf4 SbYMfsHSVfjx2vX12ENpuQSqGfCGo9G9nVK/iCOKv1cunZy9k1MJUX1qMEkxOdwX FQJrPAXJ3jmIysboHRntSdbjFoDAU3Hqz3vup1kq8GLHCVJy9UHLhtTPgcMwB8OM SsgwXhh0uHFpVl+yIHVs6WYLRoVvvcu2ZcSkeztmN1HVf18R2qv5g/OtU/j92r/H dWwGnchriJhPVKUJauLYKKECx/qoQ3evEXMN2qSocFeuYF39eHgQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=gXfAVqh85+52Ro4YCND1CTkDRAKrHFDoqt+IGTh7iP4=; b=Ck5lnU8M 8vJ44ez2s71fBWtZN0qO9tDpgWXQ1l5RTH+6fndZM/uGvPbslEmtJ7STObOvv11H 2CD1AaTBH0BLnWU0xXRUd45z0sCwfod5OR3ZJctkNiANEYl+k34D2Y7Pp9AzjH6U iGnI4MQd7/D48yLnzZFnMGw0AoamC9pki2fbs9Q5D8HjAg74705E1+6ojDp3PVkp H720+Ea7zvYcT9Wlp6mFHuLvDeAnlxTIK565csMkam6hGipo1j0hWA7m6lt7+Rvw SuCg4XJ9XV+OrcM7lE6VrvY0c9Rx1684ci5aqmX0hyFLHEe3+/7ZVVH7XMSdEKGM SHcO+59IL8dVjQ== X-ME-Sender: X-Sasl-enc: +ZWbRZzG68kdVyQNJ04t/ZzZ4F/gVYPpe9dMTI5t4oHA 1498779500 Received: from [192.168.1.2] (75-165-115-124.tukw.qwest.net [75.165.115.124]) by mail.messagingengine.com (Postfix) with ESMTPA id 50A0224787; Thu, 29 Jun 2017 19:38:20 -0400 (EDT) Subject: Re: duplicate key value violates unique constraint and duplicated records To: Timokhin Maxim , pgsql-general@postgresql.org References: <2150831498728539@web17j.yandex.ru> From: Adrian Klaver Message-ID: Date: Thu, 29 Jun 2017 16:38:19 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: <2150831498728539@web17j.yandex.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org 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