pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Geoghegan <pg@heroku.com>
Cc: pgsql-bugs@postgresql.org, Miko Kiiski <miko.kiiski@reaktor.com>
Cc: Heikki Rauhala <heikki.rauhala@reaktor.fi>
Subject: Re: "insert [...] on conflict" hangs on conflict on an unmentioned gist index
Date: Mon, 04 Jul 2016 11:00:33 -0400
Message-ID: <19377.1467644433@sss.pgh.pa.us> (raw)
In-Reply-To: <4C976D6B-76B4-434C-8052-D009F7B7AEDA@reaktor.fi>
References: <4C976D6B-76B4-434C-8052-D009F7B7AEDA@reaktor.fi>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Heikki Rauhala <heikki.rauhala@reaktor.fi> writes:
> The last insert of the following statements causes a busy loop that does not complete:

> create table gist_test (
>   bar text,
>   foo text,
>   constraint gist_test_bar_unique unique (bar),
>   constraint gist_test_foo_gist_unique exclude using gist (foo with =)
> );
> insert into gist_test (bar, foo) values ('bar', 'foo');
> insert into gist_test (bar, foo) values ('baz', 'foo’) on conflict on constraint gist_test_bar_unique do nothing;

It looks to me like the ON CONFLICT code has exactly zero chance of
working with non-btree (or more generally, non-amcanunique) indexes.
Was this case ever considered during development?

			regards, tom lane


-- 
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 (5+ messages)  latest in thread

Message-ID: <19377.1467644433@sss.pgh.pa.us>
Permalink:  ../19377.1467644433@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19377.1467644433@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, pg@heroku.com, miko.kiiski@reaktor.com, heikki.rauhala@reaktor.fi
  Subject: Re: "insert [...] on conflict" hangs on conflict on an unmentioned gist index
  In-Reply-To: <19377.1467644433@sss.pgh.pa.us>
  References: <4C976D6B-76B4-434C-8052-D009F7B7AEDA@reaktor.fi> <19377.1467644433@sss.pgh.pa.us>

* 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