Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id DACD614C2166 for ; Mon, 23 Jul 2012 21:30:54 -0300 (ADT) Received: from mail-pb0-f46.google.com ([209.85.160.46]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1StT1X-0006aR-72 for pgsql-performance@postgresql.org; Tue, 24 Jul 2012 00:30:53 +0000 Received: by pbbrp8 with SMTP id rp8so11711092pbb.19 for ; Mon, 23 Jul 2012 17:30:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=jevp8ZFufOOsTMcwEsjUXicM8AuDQCN9nHCG4JuT6bk=; b=j7rcWZ33zwyopvzByr/U1e4rUj494dYn9qC5TVfuJIa682gibth9DjmeQWXXqvJIj5 +ivQ4/hqvQ4msCpoIwsci63DNkGOW3o8w+wCNSpymgd5pcJ/vLfT1O3gvnuTLUAovMuN DgWNCBo20WoJhJiHZzEXGHT/Ov6VFyvqFUqhNu72vZcCDKxNRDSH16MWUuzkkxQySFaw XUd6xQnaB+FLg33IlUOxUuyA/qOOj+ZwekjG8jSbIty2h5PrxXt+LiLbui5lzLzkQ9GQ b5aWQgCQFbV0DoDb0RMlYovG7e842lv5wXlM4nVkj34v95U3/281IEvQSRkY+LXd1ejT PmxQ== Received: by 10.68.226.131 with SMTP id rs3mr39657151pbc.62.1343089835070; Mon, 23 Jul 2012 17:30:35 -0700 (PDT) Received: from ayaki.localdomain ([114.75.214.115]) by mx.google.com with ESMTPS id wf7sm10942637pbc.34.2012.07.23.17.30.30 (version=SSLv3 cipher=OTHER); Mon, 23 Jul 2012 17:30:34 -0700 (PDT) Message-ID: <500DEC9E.90603@ringerc.id.au> Date: Tue, 24 Jul 2012 08:30:22 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: Jim Vanns CC: Martin French , pgsql-performance@postgresql.org, pgsql-performance-owner@postgresql.org Subject: Re: Odd blocking (or massively latent) issue - even with EXPLAIN References: <1343032905.12579.3.camel@sys367.ldn.framestore.com> <1343054763.12579.110.camel@sys367.ldn.framestore.com> In-Reply-To: <1343054763.12579.110.camel@sys367.ldn.framestore.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQnajQ6i6dduMZC3ulqmtH5NMhIgmt2tPUZiKPrCLTeR9bIkeWfrdE9gug7WTAHjziXgv6df X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201207/278 X-Sequence-Number: 47459 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? -- Craig Ringer