pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tiago Babo <tiago.babo@gmail.com>
To: David Gould <daveg@sonic.net>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Peter Geoghegan <pg@bowt.ie>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14526: no unique or exclusion constraint matching the ON CONFLICT
Date: Thu, 9 Feb 2017 07:48:24 +0000
Message-ID: <549DAB22-678B-47B7-A115-4F4F4E3B4513@gmail.com> (raw)
In-Reply-To: <20170208180040.0e2b4891@engels>
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>
	<CAH2-Wz=J+AtQg5xEm3y6GUO=KfzqsfKy89Vzn0-NayjkF_baVw@mail.gmail.com>
	<CAPsQ5r-2W=cJmJsQfd1qAY=kFuXDnR668iQvL8kTQSCkmoU76w@mail.gmail.com>
	<CAH2-WznXVG2DYXADcr7wXGO+E+YWUrofm4qYat2a-2kbwoD5Xg@mail.gmail.com>
	<D7999A4B-2BF0-4BDD-8C42-09F635897C13@gmail.com>
	<CAH2-WznTcRCcKPNTEduQXz4KLfoWCzAFg3dUBgKQ91LpwxekAQ@mail.gmail.com>
	<31235.1486511840@sss.pgh.pa.us>
	<CAH2-Wzm5RB4H=yiZBJJ5ONQOECb15=KjkS=ZC+r8j56OhTLNhg@mail.gmail.com>
	<CAH2-Wz=ui3Asb8xtY40L1jF4cxgqmnoSbmpoJT74TWSUYMz69g@mail.gmail.com>
	<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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Yes, you're right. I'm using parameters for that part of the query.

> On 9 Feb 2017, at 02:00, David Gould <daveg@sonic.net> wrote:
> 
> On Wed, 08 Feb 2017 18:57:16 -0500
> Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 
>> David Gould <daveg@sonic.net> writes:
>>> Tom Lane <tgl@sss.pgh.pa.us> 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



view thread (32+ messages)

Message-ID: <549DAB22-678B-47B7-A115-4F4F4E3B4513@gmail.com>
Permalink:  ../549DAB22-678B-47B7-A115-4F4F4E3B4513@gmail.com/
Also on:    postgresql.org/message-id/549DAB22-678B-47B7-A115-4F4F4E3B4513@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tiago.babo@gmail.com, daveg@sonic.net, tgl@sss.pgh.pa.us, pg@bowt.ie
  Subject: Re: BUG #14526: no unique or exclusion constraint matching the ON CONFLICT
  In-Reply-To: <549DAB22-678B-47B7-A115-4F4F4E3B4513@gmail.com>
  References: <20170202140701.1401.31196@wrigleys.postgresql.org> <14575.1486493671@sss.pgh.pa.us> <499844AD-291B-40F5-9892-E5591736FD2E@gmail.com> <22106.1486500247@sss.pgh.pa.us> <CAH2-Wz=J+AtQg5xEm3y6GUO=KfzqsfKy89Vzn0-NayjkF_baVw@mail.gmail.com> <CAPsQ5r-2W=cJmJsQfd1qAY=kFuXDnR668iQvL8kTQSCkmoU76w@mail.gmail.com> <CAH2-WznXVG2DYXADcr7wXGO+E+YWUrofm4qYat2a-2kbwoD5Xg@mail.gmail.com> <D7999A4B-2BF0-4BDD-8C42-09F635897C13@gmail.com> <CAH2-WznTcRCcKPNTEduQXz4KLfoWCzAFg3dUBgKQ91LpwxekAQ@mail.gmail.com> <31235.1486511840@sss.pgh.pa.us> <CAH2-Wzm5RB4H=yiZBJJ5ONQOECb15=KjkS=ZC+r8j56OhTLNhg@mail.gmail.com> <CAH2-Wz=ui3Asb8xtY40L1jF4cxgqmnoSbmpoJT74TWSUYMz69g@mail.gmail.com> <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> <549DAB22-678B-47B7-A115-4F4F4E3B4513@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox