Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WhQnJ-0006AL-Gn for pgsql-performance@arkaria.postgresql.org; Mon, 05 May 2014 21:51:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WhQnI-0000l4-SJ for pgsql-performance@arkaria.postgresql.org; Mon, 05 May 2014 21:51:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WhQnG-0000kp-PU for pgsql-performance@postgresql.org; Mon, 05 May 2014 21:51:26 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WhQnD-00021d-0y for pgsql-performance@postgresql.org; Mon, 05 May 2014 21:51:26 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1WhQnB-0000yD-Bs for pgsql-performance@postgresql.org; Mon, 05 May 2014 14:51:21 -0700 Date: Mon, 5 May 2014 14:51:21 -0700 (PDT) From: David G Johnston To: pgsql-performance@postgresql.org Message-ID: <1399326680993-5802555.post@n5.nabble.com> In-Reply-To: References: Subject: Re: recently and selectively slow, but very simple, update query.... MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org Stelios Mavromichalis wrote >> the load of the machine is also low (like 0.2). Which means little if the update is waiting for a lock to be released by one other process; which is more likely the situation (or some other concurrency contention) especially as you said that this particular user generates significant transaction/query volume (implied by the fact the user has the most balance updates). During slow-update executions you want to look at: pg_stat_activity pg_locks to see what other concurrent activity is taking place. It is doubtful that dump/restore would have any effect given that the symptoms are sporadic and we are only talking about a select statement that returns a single row; and an update that does not hit any indexed column and therefore benefits from "HOT" optimization. HTH David J. -- View this message in context: http://postgresql.1045698.n5.nabble.com/Re-recently-and-selectively-slow-but-very-simple-update-query-tp5802553p5802555.html Sent from the PostgreSQL - performance mailing list archive at Nabble.com. -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance