Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iHZ9Y-0003rx-Ie for pgsql-bugs@arkaria.postgresql.org; Mon, 07 Oct 2019 19:58:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iHZ9X-0000Q2-DU for pgsql-bugs@arkaria.postgresql.org; Mon, 07 Oct 2019 19:58:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iHZ9X-0000Pv-6A for pgsql-bugs@lists.postgresql.org; Mon, 07 Oct 2019 19:58:43 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iHZ9U-0001tB-GT for pgsql-bugs@lists.postgresql.org; Mon, 07 Oct 2019 19:58:42 +0000 Received: by mail-wm1-x344.google.com with SMTP id i16so740104wmd.3 for ; Mon, 07 Oct 2019 12:58:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=KaZcdPYKbPToloSS8/5BbyNFkZ5JlRFON9ztv7Jqt4Q=; b=Ykk2k37DfG/XcwzzWqHPfknwxCAUazNnnPjzK0sX/rrHP2WpVHMcjclj2Esx0qVaV+ 8Gu3Ij7+Hqu1L/D4TNMlV2yE/foihSYMbtZXf4hQDUjjamrgOqvILdALFvEcgTChATah xfxbVIne67KbHrxDPlMbuubh8rOGnzwbNLH6PaS2e9De25U9WvjiLqdkecbdQlpajy9T vN9vqqY5Yw0sEwn2MQot6rgzKoXM9glnmUSpLyiPFOME5Gij26RpL6vsl+G6NhcsCTXD rSp2xKV+0UMex1soNKGp7uoQ/c+s49pCsi+sE3Z6LNKENAbb4ral2GLJUqxwP3ajLYwH tmSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=KaZcdPYKbPToloSS8/5BbyNFkZ5JlRFON9ztv7Jqt4Q=; b=VAEJt/wFQAlEyiVaTjpMig32Q79/zSC+UOF9gKYiSrTVgHm5H+A+N7PpxC42sLaWQd o5XgAj+5RSI3BuXB7o17FGGC9cPAvvrUHzQ4fPGBbNgVu9DN5IGNFyqLxck41c6h9qQL NACDaHESnXLySABGqInHAtL6XSBXBR9AfsXHJt4UEHPclh5abKN0eEMCEYh0b0nc8uE9 Do0DYTXocHV5uJahHkE4WzaEXI6p1oXT4AITtm7qAaWHfeKVPfSCCnGMldx1COcw5uPU G36zJHTVvZOnocuC1drLLqULO9b/nH/+5VV6vCzPoa241f1fDtbSzSqQGuwR6uRN0WwS WLWw== X-Gm-Message-State: APjAAAXPGQej55/jk2PyjYp9UQQsrH2T0vOySQM6rt3/V7J62Ahpgxya MXw4WvDB4cWspAuEQ2nVaTce0Q== X-Google-Smtp-Source: APXvYqyzzrNyu3B35DiY0KPuqDItdlXJRWPq5vUgVoA376Uz7fFSEAcWxGqJnZd9eoRLyFRFxegaIQ== X-Received: by 2002:a1c:2e50:: with SMTP id u77mr803476wmu.64.1570478319802; Mon, 07 Oct 2019 12:58:39 -0700 (PDT) Received: from localhost (ip-86-49-253-183.net.upcbroadband.cz. [86.49.253.183]) by smtp.gmail.com with ESMTPSA id f83sm355016wmf.43.2019.10.07.12.58.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Oct 2019 12:58:39 -0700 (PDT) Date: Mon, 7 Oct 2019 21:58:36 +0200 From: Tomas Vondra To: Komal Sookee Cc: Tom Lane , pgsql-bugs@lists.postgresql.org, Irfaan Coonjbeeharry Subject: Re: BUG #16043: Duplicate Entry Key Message on postgres Message-ID: <20191007195836.6o43lheffo3fxnu5@development> References: <16043-c67f5d0837cd6825@postgresql.org> <26234.1570455355@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, Oct 07, 2019 at 05:40:14PM +0400, Komal Sookee wrote: >Hello Tom, > >Could you help me out to find out a solution? > >What information do you need? > I'd start by reading the wiki page Tom already pointed you to. That's a pretty extensive summary and it should give you at least some rought idea what information would be useful ... In this particular case, you should probably start with an explanation what environment you're using, what queries are generated by the DataSet, what exactly "Duplicate Entry Key" means in the context of the application, and scavenge all the various logs (application, database, ...) for as much additional details as possible. Considering PostgreSQL does not generate any "Duplicate Entry Key" errors (there are no such messages in the source code), this very much seems like an issue in the application and not in the database. So maybe the first thing you need to do is convincing us this actually is a database issue. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services