Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id BD3B25F9CE9; Tue, 24 Jul 2012 05:37:40 -0300 (ADT) Received: from mx5.framestore.com ([193.203.83.15]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Stacb-0006Qm-SU; Tue, 24 Jul 2012 08:37:39 +0000 Received: from vm-zimbra.ldn.framestore.com ([172.16.73.68] helo=zimbra.framestore.com) by mx5.framestore.com with esmtp (Exim 4.72) (envelope-from ) id 1StacI-00051z-36; Tue, 24 Jul 2012 09:37:23 +0100 Received: from [172.16.84.176] (sys367.ldn.framestore.com [172.16.84.176]) by zimbra.framestore.com (Postfix) with ESMTPA id D44151131BA2; Tue, 24 Jul 2012 09:37:04 +0100 (BST) Subject: Re: Odd blocking (or massively latent) issue - even with EXPLAIN From: Jim Vanns To: Craig Ringer Cc: Jim Vanns , Martin French , pgsql-performance@postgresql.org, pgsql-performance-owner@postgresql.org In-Reply-To: <500DEC9E.90603@ringerc.id.au> References: <1343032905.12579.3.camel@sys367.ldn.framestore.com> <1343054763.12579.110.camel@sys367.ldn.framestore.com> <500DEC9E.90603@ringerc.id.au> Content-Type: text/plain; charset="UTF-8" Organization: Framestore Date: Tue, 24 Jul 2012 09:37:12 +0100 Message-ID: <1343119032.12579.140.camel@sys367.ldn.framestore.com> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 (2.28.3-1.fc12) Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201207/283 X-Sequence-Number: 47464 On Tue, 2012-07-24 at 08:30 +0800, Craig Ringer wrote: > On 07/23/2012 10:46 PM, Jim Vanns wrote: > > Nothing obvious - and we log a fair amount. No tmp table creations, > > no locks held. > > > > To add to this EXPLAIN reports it took only 0.23ms to run (for example) > > whereas the wall clock time is more like 20-30 minutes (or up to n hours > > as I said where everything appears to click back into place at the same > > time). > How many concurrent connections do you have? Between 4 and 64 at peak! max_connections is only set to 100. Jim > -- > Craig Ringer -- Jim Vanns Systems Programmer Framestore