X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 62CAAD97D6 for ; Fri, 4 Nov 2005 19:08:26 -0400 (AST) 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 27741-09 for ; Fri, 4 Nov 2005 23:08:23 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [64.139.89.126]) by svr1.postgresql.org (Postfix) with ESMTP id 87FD5D93CF for ; Fri, 4 Nov 2005 19:08:24 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id jA4N8Qw05731; Fri, 4 Nov 2005 18:08:26 -0500 (EST) From: Bruce Momjian Message-Id: <200511042308.jA4N8Qw05731@candle.pha.pa.us> Subject: Re: INDEXes In-Reply-To: <001c01c5e18e$dd549240$f800a8c0@toshi> To: =?windows-1250?Q?Leonia_Zaj=B9c?= Date: Fri, 4 Nov 2005 18:08:26 -0500 (EST) Cc: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UNKNOWN-8BIT X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.014 required=5 tests=[AWL=0.014] X-Spam-Score: 0.014 X-Spam-Level: X-Archive-Number: 200511/46 X-Sequence-Number: 19419 Leonia Zając wrote: > Li?cieHi ! > > Can anybody say, HOW does the postgre sql query planer, or executer, > prepers the query plan, if i have several indexes on my table ? You can look at EXPLAIN to see the index chosen. I have an "Internals through Pictures" PDF on my home page below that outlines how the decisions are made, plus there is the source code and various README files that go into details about the optimizer. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073