Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gUrNf-0000qO-HP for pgsql-general@arkaria.postgresql.org; Thu, 06 Dec 2018 10:59:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gUrNe-0001ih-9g for pgsql-general@arkaria.postgresql.org; Thu, 06 Dec 2018 10:59:42 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gUrNc-0001gq-Di for pgsql-general@lists.postgresql.org; Thu, 06 Dec 2018 10:59:42 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gUrNW-0003Pr-2M for pgsql-general@postgresql.org; Thu, 06 Dec 2018 10:59:39 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 3BABF21F67; Thu, 6 Dec 2018 05:59:32 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 06 Dec 2018 05:59:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imap.cc; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=1 XqZpQBrWAkkikYmyGMRJFja5Zzg97p9Ow/8tsb2wLA=; b=S4tsI9ngiy4+C/Nz/ 7VwQ/AbwoBvgduZ3s5nhcB/fMmBZVzGEfvFdwizbgqLvRJfln7F4O83HPIfe/hA3 4buJH8+OJjF3E1DHKnkq1Z4TOz+aLzWXk60j5pDroxXXVGNfMz0kHoGhMQfVtlxf e/MjTh7FwegslgbuIO/sbdXGeJ5b2SHFjmAZF3xuiUNGe8/3hikgvcp/JkbBZiOY PGw7SpHh7kGD1/OFgPZ1j3yd21Zqk7tF/Bd3c34SKL+qxuhOaVOyJNdUlEoSk3sk yAJcvgSTJ3TLN1Oco1aO9xVNHzL+qmSbhxxsS24K2fVOftSgLHYbU1tzcgJySl02 x5Nwg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=1XqZpQBrWAkkikYmyGMRJFja5Zzg97p9Ow/8tsb2w LA=; b=m+oBcHFOPpDrqsVHHsX7PoDR5ZFSzZjR60DR5+hUqLbAGEUqLYDwRNsYj JgPG2PZ1VLmkmJuyKhZJBhVfjgTn8uJQeCXboA++aSTDzk75Nu2BQuTvNONKtU3/ RB7Iczj2qSsDJ3A4f9GaX6wWL3EUwAhYuU52wjxFuvruz+GyuzkFHwismzs6pvzm UoA8Y555mUqrMfjYi479NEE/YurlIioOQvkCwmlTGYvNJ+wXj6LXdK3kKlomxe5/ adixmKczoG9CCKQwvpra6tu03nDADq6BoTK419EK6YHFzaZuSueULtD597mYkHlN Vy4vBVP4WYxzto+YVYvb4K/UnKgtQ== X-ME-Sender: X-ME-Proxy: Received: from [10.2.33.124] (unknown [185.25.33.70]) by mail.messagingengine.com (Postfix) with ESMTPA id 22F8EE44A5; Thu, 6 Dec 2018 05:59:31 -0500 (EST) Subject: Re: debugging intermittent slow updates under higher load To: Chris Withers , pgsql-general References: <56acdbff-1e87-e1f9-3e9e-873685ad0e1e@imap.cc> From: Alexey Bashtanov Message-ID: <9b949350-e294-c3f9-4d73-1eb05cad3819@imap.cc> Date: Thu, 6 Dec 2018 11:00:18 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > Is there any existing tooling that does this? There must be some, google for queries involving pg_locks > I'm loath to start hacking something up when I'd hope others have done > a better job already... If you log all queries that take more than a second to complete, is your update the only one logged, or something (the would-be blocker) gets logged down together with it?