Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 6B469B5D91F for ; Mon, 31 Oct 2011 12:28:08 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 78590-04 for ; Mon, 31 Oct 2011 15:28:02 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 5ED69B5D803 for ; Mon, 31 Oct 2011 12:28:02 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p9VFS1CU027431; Mon, 31 Oct 2011 11:28:01 -0400 (EDT) To: =?ISO-8859-1?Q?S=F6ren_Meyer-Eppler?= cc: pgsql-performance@postgresql.org Subject: Re: PostgreSQL 9.0.4 blocking in lseek? In-reply-to: <4EAEAC21.5080209@google.com> References: <4EA82B7C.1040008@google.com> <9398.1319761978@sss.pgh.pa.us> <4EAEAC21.5080209@google.com> Comments: In-reply-to =?ISO-8859-1?Q?S=F6ren_Meyer-Eppler?= message dated "Mon, 31 Oct 2011 15:09:37 +0100" Date: Mon, 31 Oct 2011 11:28:01 -0400 Message-ID: <27430.1320074881@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-3.101 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-1.201 X-Spam-Level: X-Archive-Number: 201110/277 X-Sequence-Number: 45499 =?ISO-8859-1?Q?S=F6ren_Meyer-Eppler?= writes: >> embedded in often-executed plpgsql functions, for instance. Can you >> identify which table the lseeks are issued against? > I wouldn't know how? I'm just using htop and "s" on the postgres process > to find these... Note the file number appearing in the lseeks, run "lsof -p PID" against the backend process to discover the actual filename of that file, then look for a match to the filename in pg_class.relfilenode. > I have attached two of the offending execution plans. Anything obviously > wrong with them? What makes you say these are "offending execution plans"? Both of them seem to be completing just fine. regards, tom lane