Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbpnJ-00066S-4N for pgsql-bugs@arkaria.postgresql.org; Thu, 09 Feb 2017 14:33:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cbpnI-0002Xb-DX for pgsql-bugs@arkaria.postgresql.org; Thu, 09 Feb 2017 14:33:56 +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 1cbjSy-0004ur-8J for pgsql-bugs@postgresql.org; Thu, 09 Feb 2017 07:48:32 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cbjSt-0001Oq-2u for pgsql-bugs@postgresql.org; Thu, 09 Feb 2017 07:48:31 +0000 Received: by mail-wm0-x244.google.com with SMTP id u63so1562420wmu.2 for ; Wed, 08 Feb 2017 23:48:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=eYiLjQIheZb8BbXylPldxVa8vqrvGmKdmNqzZsrK9a4=; b=lD5gTZs+EjefWMjczydQKTNBA+SrhgjOMs8rcKPIN3LgzaKesT0wqdNzdC6R3WBAgJ tvlDOfNx38h9B9ZXGyl5qpVH+yKbQKSuyoodpBp1RNwCWRASawlprQiSH2n7D+ZcKPaE SonXO1fZ7NwV9Eade1ORmHxWcUpSg18WZ6dlNGtiMhNmlnGkCRCKs5es2OMOfjq4pSCe tTE4CPAimEuX/GTpYpNNt9hq5rjUlM10QomH1v1gNgKFvdEZFOD96NMJMV62u2z2wk90 1M5FWO/Am5Z/2oeLfOSq+9kdQJqsgEQPXddG8qeCiRdIXKrzW5Qx9nKM3LMdzEqkzvAM I0/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=eYiLjQIheZb8BbXylPldxVa8vqrvGmKdmNqzZsrK9a4=; b=qy7PLLb91Fai4y4wl/qA9htoOE19/DItTZ84qJhFUElAtHwyVTBUJD2rtogIqSEOjS htPlrLCPC8YiRkRaLO0T0cksa11ZQ8aQGEmxW9N8HnOXxLvhhhLma0fxt+vbVEQNusdh hRuCHOujxf9AF4PIi5SMDuo0czXGVHEY6ifuN16CrJUtKv+MBjBlmc+n4GBDYgdPYFkz jiSx9TCsL5ucAWDcVXTnXpvbHmSFwby1ChJW8iTygZDCCocekTjigc7mdIJ6ztT35VT2 n7s2ny0hoPEezr+0YzQ7pcwPdQqDcinNbS357FaugpFtlt9PxIN9X/XpDQ/hkCY55COQ e7dA== X-Gm-Message-State: AMke39n7pawpgNdmUPNHUx6KHAisTI0WVL9olIaGDqw2UgaqmZp8MWOkE+57tPYZutSnhg== X-Received: by 10.28.27.69 with SMTP id b66mr19897698wmb.50.1486626505996; Wed, 08 Feb 2017 23:48:25 -0800 (PST) Received: from [192.168.0.100] ([109.51.0.49]) by smtp.gmail.com with ESMTPSA id o22sm17079904wro.2.2017.02.08.23.48.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Feb 2017 23:48:25 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: BUG #14526: no unique or exclusion constraint matching the ON CONFLICT From: Tiago Babo X-Mailer: iPhone Mail (14D27) In-Reply-To: <20170208180040.0e2b4891@engels> Date: Thu, 9 Feb 2017 07:48:24 +0000 Cc: Tom Lane , Peter Geoghegan , pgsql-bugs@postgresql.org Content-Transfer-Encoding: 7bit Message-Id: <549DAB22-678B-47B7-A115-4F4F4E3B4513@gmail.com> 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> <20170208180040.0e2b4891@engels> To: David Gould X-Pg-Spam-Score: -2.7 (--) 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 Yes, you're right. I'm using parameters for that part of the query. > On 9 Feb 2017, at 02:00, David Gould wrote: > > 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