Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id B4199F47F71 for ; Wed, 28 Dec 2011 10:20:19 -0400 (AST) Received: from aperol.beccati.com ([93.94.29.238] helo=mail.beccati.com) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RfuMb-0004hI-9e for pgsql-performance@postgresql.org; Wed, 28 Dec 2011 14:20:18 +0000 Received: (qmail 13735 invoked from network); 28 Dec 2011 15:19:50 +0100 Received: from unknown (HELO ?192.168.1.202?) (matteo@beccati.com@88.149.176.119) by mail.beccati.com with SMTP; 28 Dec 2011 14:19:50 -0000 Message-ID: <4EFB2597.1080005@beccati.com> Date: Wed, 28 Dec 2011 15:20:07 +0100 From: Matteo Beccati User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: Tom Lane CC: pgsql-performance@postgresql.org Subject: Re: PostgreSQL 9.0.4 blocking in lseek? References: <4EA82B7C.1040008@google.com> <9398.1319761978@sss.pgh.pa.us> <4EFAE7F6.30603@beccati.com> In-Reply-To: <4EFAE7F6.30603@beccati.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -3.2 (---) X-Archive-Number: 201112/191 X-Sequence-Number: 45990 Hi, > I'm also trying an EXPLAIN ANALYZE for the SELECT part, but it seems to > take a while too and is seemingly calling only gettimeofday. An update on this. Apart from gettimeofday calls, which I filtered out when logging, I've seen about 80 lseeks recorded every 1h10m (each 1us apart): 2011-12-28 11:06:25.546661500 lseek(10, 0, SEEK_END) = 27623424 2011-12-28 11:06:25.546662500 lseek(10, 0, SEEK_END) = 27623424 2011-12-28 11:06:25.546663500 lseek(10, 0, SEEK_END) = 27623424 ... 2011-12-28 12:16:56.144663500 lseek(10, 0, SEEK_END) = 27623424 ... 2011-12-28 13:28:20.436549500 lseek(10, 0, SEEK_END) = 27623424 ... I've then decided to interrupt the EXPLAIN ANALYZE. But I suppose that the database as it is now will likely allow to further debug what's happening. Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/