Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id D673B6324F2 for ; Mon, 2 Nov 2009 20:18:11 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 66350-09 for ; Tue, 3 Nov 2009 00:18:04 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 18CC76321D1 for ; Mon, 2 Nov 2009 20:18:03 -0400 (AST) 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 nA30I2WO011588; Mon, 2 Nov 2009 19:18:02 -0500 (EST) To: "Kevin Grittner" cc: jesper@krogh.cc, pgsql-performance@postgresql.org, oleg@sai.msu.su, teodor@sigaev.ru Subject: Re: Queryplan within FTS/GIN index -search. In-reply-to: <4AEF0369020000250002C183@gw.wicourts.gov> References: <4AEF0369020000250002C183@gw.wicourts.gov> Comments: In-reply-to "Kevin Grittner" message dated "Mon, 02 Nov 2009 16:06:00 -0600" Date: Mon, 02 Nov 2009 19:18:02 -0500 Message-ID: <11587.1257207482@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200911/17 X-Sequence-Number: 36185 "Kevin Grittner" writes: > Tom Lane wrote: >> Any sane text search application is going to try to filter out >> common words as stopwords; it's only the failure to do that that's >> making this run slow. > I'd rather have the index used for the selective test, and apply the > remaining tests to the rows retrieved from the heap. Uh, that was exactly my point. Indexing common words is a waste. regards, tom lane