X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4792352828 for ; Mon, 27 Jun 2005 19:41:30 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 23400-03 for ; Mon, 27 Jun 2005 22:41:20 +0000 (GMT) Received: from mars.interactivemediafactory.net (mars.imfeurope.net [194.2.222.161]) by svr1.postgresql.org (Postfix) with ESMTP id E7B5652822 for ; Mon, 27 Jun 2005 19:41:18 -0300 (ADT) Received: from JC-8600.directinfos.com (localhost [127.0.0.1]) by mars.interactivemediafactory.net (8.12.11/8.12.11) with ESMTP id j5RMfCsh056281; Tue, 28 Jun 2005 00:41:14 +0200 (CEST) (envelope-from jc@directinfos.com) Message-Id: <6.2.0.14.0.20050628003823.065c2de8@pop.interactivemediafactory.net> X-Mailer: QUALCOMM Windows Eudora Version 6.2.0.14 Date: Tue, 28 Jun 2005 00:40:53 +0200 To: "Karl O. Pinc" From: Jacques Caron Subject: Re: Forcing use of a particular index Cc: pgsql-performance@postgresql.org In-Reply-To: <1119914161l.4428l.4l@mofo> References: <1119914161l.4428l.4l@mofo> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200506/507 X-Sequence-Number: 13144 Hi, At 01:16 28/06/2005, Karl O. Pinc wrote: >http://www.postgresql.org/docs/8.0/static/indexes-examine.html > >Says: > >"If you do not succeed in adjusting the costs to be more >appropriate, then you may have to resort to forcing index >usage explicitly." > >Is there a way to force a query to use a particular index? Not that I know of. >If not, what does this sentence mean? That you can force the planner to use an index (any one) over not using an index (and using seq scans instead) by setting enable_seqscan to off. Jacques.