Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbbkh-0000cS-U2 for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Feb 2017 23:34:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cbbkg-0004S1-Fl for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Feb 2017 23:34:18 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cbbk1-0003jE-LN for pgsql-bugs@postgresql.org; Wed, 08 Feb 2017 23:33:37 +0000 Received: from d.mail.sonic.net ([64.142.111.50]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cbbjx-0000bh-L7 for pgsql-bugs@postgresql.org; Wed, 08 Feb 2017 23:33:36 +0000 Received: from engels (162-236-13-58.lightspeed.sntcca.sbcglobal.net [162.236.13.58]) (authenticated bits=0) by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id v18NXSvN003552 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA256 bits=128 verify=NOT); Wed, 8 Feb 2017 15:33:28 -0800 Date: Wed, 8 Feb 2017 15:33:28 -0800 From: David Gould To: Tom Lane Cc: Tiago Babo , Peter Geoghegan , pgsql-bugs@postgresql.org Subject: Re: BUG #14526: no unique or exclusion constraint matching the ON CONFLICT Message-ID: <20170208153328.1d28f349@engels> In-Reply-To: <5285.1486575118@sss.pgh.pa.us> References: <20170202140701.1401.31196@wrigleys.postgresql.org> <166D0A9D-162D-4216-9490-3163533166C1@gmail.com> <14575.1486493671@sss.pgh.pa.us> <499844AD-291B-40F5-9892-E5591736FD2E@gmail.com> <22106.1486500247@sss.pgh.pa.us> <31235.1486511840@sss.pgh.pa.us> <2205EBF5-5095-4389-9D6B-1469EE60A0AD@gmail.com> <4487.1486573790@sss.pgh.pa.us> <176C4C3F-A4A8-49AE-BEE0-2CF28A113FB5@gmail.com> <5285.1486575118@sss.pgh.pa.us> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Sonic-CAuth: UmFuZG9tSVbaCahE2Mz14YoFq9kz6JCqrrjsgd9aX5GUty8W46LHeHoWNUjo4DjcVYMHsinakY2DoFk5shFSPXOdD7sdYSVY X-Sonic-ID: C;wFNC/lbu5hG5mYs6xpAcWQ== M;2IR7/lbu5hG5mYs6xpAcWQ== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd X-Pg-Spam-Score: -2.1 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Wed, 08 Feb 2017 12:31:58 -0500 Tom Lane wrote: > Tiago Babo writes: > > This is not how my application is doing the insert (like I showed you before), but it was the only way I could continuously get the error. I'm using a Scala library called ScalikeJDBC to access the database. So maybe the problem is on how it handles the execution. > > You should turn on log_statements and look to see what's actually being > sent to the server. Last time I looked, the JDBC driver always uses prepared statements. -dg -- David Gould 510 282 0869 daveg@sonic.net If simplicity worked, the world would be overrun with insects. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs