X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 4C0229DCCCB for ; Tue, 29 Nov 2005 21:43:47 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 07457-04 for ; Tue, 29 Nov 2005 21:43:48 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.mi8.com (d01gw04.mi8.com [63.240.6.44]) by postgresql.org (Postfix) with ESMTP id 22D869DCCDB for ; Tue, 29 Nov 2005 21:43:41 -0400 (AST) Received: from 172.16.1.110 by mail.mi8.com with ESMTP (- Welcome to Mi8 Corporation www.Mi8.com (D4)); Tue, 29 Nov 2005 20:14:03 -0500 X-Server-Uuid: C8FB4D43-1108-484A-A898-3CBCC7906230 Received: from D01HOST03.Mi8.com ([172.16.1.25]) by D01SMTP01.Mi8.com with Microsoft SMTPSVC(6.0.3790.211); Tue, 29 Nov 2005 20:10:12 -0500 Received: from MI8NYCMAIL06.Mi8.com ([172.16.1.160]) by D01HOST03.Mi8.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 29 Nov 2005 18:58:14 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Received: from 67.103.45.218 ([67.103.45.218]) by MI8NYCMAIL06.Mi8.com ( [172.16.1.219]) via Exchange Front-End Server mi8owa.mi8.com ( [172.16.1.104]) with Microsoft Exchange Server HTTP-DAV ; Tue, 29 Nov 2005 23:42:29 +0000 MIME-Version: 1.0 User-Agent: Microsoft-Entourage/11.2.1.051004 In-Reply-To: <1133285745.1039.1.camel@toonses.gghcwest.com> Content-class: urn:content-classes:message Subject: Re: ice-broker scan thread Date: Tue, 29 Nov 2005 18:42:27 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [HACKERS] ice-broker scan thread Thread-Index: AcX1DpeNYGIoyYznT8WtGGBZb+q72wAL/aCi From: "Luke Lonergan" To: "Jeffrey W. Baker" , "Pollard, Mike" cc: "Qingqing Zhou" , pgsql-hackers@postgresql.org X-OriginalArrivalTime: 29 Nov 2005 23:58:14.0995 (UTC) FILETIME=[C31AC230:01C5F540] X-WSS-ID: 6F922347408533498-02-01 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.253 required=5 tests=[AWL=0.000, RCVD_NUMERIC_HELO=1.253] X-Spam-Score: 1.253 X-Spam-Level: * X-Archive-Number: 200511/1507 X-Sequence-Number: 76789 Jeff, On 11/29/05 9:35 AM, "Jeffrey W. Baker" wrote: > On Tue, 2005-11-29 at 09:45 -0500, Pollard, Mike wrote: >=20 >> Anyway, what I did was the following. When doing a sequential scan, = we >> were starting at the beginning of the table and scanning forward. If = I >> threw up some threads to read ahead, then my user thread and my read >> ahead threads would thrash on trying to lock the buffer slots. So, I >> had the read ahead threads start at some distance into the table, and >> work toward the beginning. >=20 > I believe this is commonly called a synchronous scan. I think sync scan refers to the use of a scanner shared among concurrent queries, where they can join a scan in progress from it's current = location. It sounds like the logic could be shared. Sync scan (as I've described above) is another important optimization we'd like to see. - Luke