Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bK5Ma-0005kg-CC for pgsql-bugs@arkaria.postgresql.org; Mon, 04 Jul 2016 15:00:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bK5MZ-0007LR-VF for pgsql-bugs@arkaria.postgresql.org; Mon, 04 Jul 2016 15:00:44 +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 1bK5MZ-0007Kq-6U for pgsql-bugs@postgresql.org; Mon, 04 Jul 2016 15:00:43 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bK5MV-0005wt-P5 for pgsql-bugs@postgresql.org; Mon, 04 Jul 2016 15:00:42 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u64F0Xbf019378; Mon, 4 Jul 2016 11:00:33 -0400 From: Tom Lane To: Peter Geoghegan cc: pgsql-bugs@postgresql.org, Miko Kiiski , Heikki Rauhala Subject: Re: "insert [...] on conflict" hangs on conflict on an unmentioned gist index In-reply-to: <4C976D6B-76B4-434C-8052-D009F7B7AEDA@reaktor.fi> References: <4C976D6B-76B4-434C-8052-D009F7B7AEDA@reaktor.fi> Comments: In-reply-to Heikki Rauhala message dated "Mon, 04 Jul 2016 15:10:32 +0300" Date: Mon, 04 Jul 2016 11:00:33 -0400 Message-ID: <19377.1467644433@sss.pgh.pa.us> X-Pg-Spam-Score: -3.2 (---) 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 Heikki Rauhala 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