Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YoCES-0006YD-EG for pgsql-hackers@arkaria.postgresql.org; Fri, 01 May 2015 14:48:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YoCER-0001WR-VI for pgsql-hackers@arkaria.postgresql.org; Fri, 01 May 2015 14:48:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YoCER-0001WJ-7T for pgsql-hackers@postgresql.org; Fri, 01 May 2015 14:47:59 +0000 Received: from mail-pa0-x22c.google.com ([2607:f8b0:400e:c03::22c]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1YoCEK-000353-Fr for pgsql-hackers@postgresql.org; Fri, 01 May 2015 14:47:58 +0000 Received: by pacyx8 with SMTP id yx8so92729453pac.1 for ; Fri, 01 May 2015 07:47:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:reply-to:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=VU5Lg8kDx0XY+zV2z7FboumWupV1xEgP5InakO+ophI=; b=yJLd9VGxW/9njELmKm1nfJ8puYGCE3+pkPsFvdflcfMZRbnR8YujKCE2refETqnD+a GPx+pKRra2SzruO97kMrrEm8MclDwc8X+QQSufEbsZylkyeiD2wyHXiQc74cwQL89bZ7 tU0LlM05xEHQPIIFe1w2HxS/MDrUhNkiUDfVP7drddAu5x6euYGjK/lWxSUdZJ0KwCyT tzWSmHfz86WQ049SzOifwTxNUOx+mTOdHIY3bbirwA29Fj/0e80mgy1AANuuoD4R8Kss uLD/sKjWFVw1EeJia5GNi7/G//iO/FCJorZqJQuJo75Kmm020RCjFgQu7d8hKip3ENvz 2yVQ== X-Received: by 10.68.252.106 with SMTP id zr10mr18390569pbc.79.1430491670469; Fri, 01 May 2015 07:47:50 -0700 (PDT) Received: from [172.20.101.172] ([66.201.48.54]) by mx.google.com with ESMTPSA id p5sm5100984pdi.2.2015.05.01.07.47.48 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 May 2015 07:47:49 -0700 (PDT) Message-ID: <55439214.6080506@iki.fi> Date: Fri, 01 May 2015 07:47:48 -0700 From: Heikki Linnakangas Reply-To: hlinnaka@iki.fi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.6.0 MIME-Version: 1.0 To: Peter Geoghegan CC: Andres Freund , Jeff Janes , Stephen Frost , Dean Rasheed , Bruce Momjian , Pg Hackers Subject: Re: INSERT ... ON CONFLICT UPDATE/IGNORE 4.0 References: <553EFF0D.4040903@iki.fi> <5542DE23.6060800@iki.fi> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 04/30/2015 11:09 PM, Peter Geoghegan wrote: > I've been unable to reproduce the unprincipled deadlock using the same > test case as before. However, the exclusion constraint code now > livelocks. Here is example output from a stress-testing session: > >... > > [Fri May 1 04:45:35 2015] normal exit at 1430455535 after 128000 > items processed at count_upsert_exclusion.pl line 192. > trying 128 clients: > [Fri May 1 04:45:58 2015] NOTICE: extension "btree_gist" already > exists, skipping > [Fri May 1 04:45:58 2015] init done at count_upsert_exclusion.pl line 106. > > > (I ssh into server, check progress). Then, due to some issue with the > scheduler or something, progress continues: > > [Fri May 1 05:17:57 2015] sum is 462 > [Fri May 1 05:17:57 2015] count is 8904 > [Fri May 1 05:17:58 2015] normal exit at 1430457478 after 128000 > items processed at count_upsert_exclusion.pl line 192. > trying 128 clients: Hmm, so it was stuck for half an hour at that point? Why do you think it was a livelock? > This is the same server that I shared credentials with you for. Feel > free to ssh in and investigate it yourself. I logged in, but the system seems very unresponsive in general. I just started "apt-get install gdb" on it, to investigate what the backends are stuck at. It's been running for about 30 minutes now, and I'm still waiting... - Heikki -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers