Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbe3E-000794-S0 for pgsql-bugs@arkaria.postgresql.org; Thu, 09 Feb 2017 02:01:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cbe3E-0004z0-9P for pgsql-bugs@arkaria.postgresql.org; Thu, 09 Feb 2017 02:01:36 +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 1cbe2Z-0004FU-0I for pgsql-bugs@postgresql.org; Thu, 09 Feb 2017 02:00:55 +0000 Received: from c.mail.sonic.net ([64.142.111.80]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cbe2Q-0003Q7-Pk for pgsql-bugs@postgresql.org; Thu, 09 Feb 2017 02:00:54 +0000 Received: from engels (162-236-13-58.lightspeed.sntcca.sbcglobal.net [162.236.13.58]) (authenticated bits=0) by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id v1920da5004155 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA256 bits=128 verify=NOT); Wed, 8 Feb 2017 18:00:40 -0800 Date: Wed, 8 Feb 2017 18:00:40 -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: <20170208180040.0e2b4891@engels> In-Reply-To: <1502.1486598236@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> <20170208153328.1d28f349@engels> <1502.1486598236@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: UmFuZG9tSVZkGYGekCw48xJRGKTb72BUlic/ZfFDGW4iprR4l4jBeTBAD37huIDhXwS1PmfgFYkk+L4p/SKl+5tBMx+4CeHR X-Sonic-ID: C;2G1hjmvu5hGV4pXQQiug7g== M;5Nyfjmvu5hGV4pXQQiug7g== 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 18:57:16 -0500 Tom Lane wrote: > David Gould writes: > > Tom Lane wrote: > >> 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. > > Yeah, but does JDBC actually pull literal constants out of the query > string and send them as separate parameter values? That seems like a > pretty dumb idea. I'm guessing that the actual call from Scala uses parameters for this part instead of duplicating the same query with only the qualification changing. Tiago, can you show us the actual code that runs this statement? -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