X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id BD6D7D1B4E7 for ; Mon, 8 Sep 2003 13:07:25 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 44358-02 for ; Mon, 8 Sep 2003 10:06:58 -0300 (ADT) Received: from wolff.to (wolff.to [66.93.249.74]) by svr1.postgresql.org (Postfix) with SMTP id 68850D1B4EE for ; Mon, 8 Sep 2003 10:06:54 -0300 (ADT) Received: (qmail 15030 invoked by uid 500); 8 Sep 2003 13:13:19 -0000 Date: Mon, 8 Sep 2003 08:13:19 -0500 From: Bruno Wolff III To: Ravi T Ramachandra Cc: pgsql-admin@postgresql.org, Sandeep Bhasin Subject: Re: Performance Issues Message-ID: <20030908131319.GB14906@wolff.to> Mail-Followup-To: Ravi T Ramachandra , pgsql-admin@postgresql.org, Sandeep Bhasin References: <4223A04BF7D1B941A25246ADD0462FF5CD7C15@blr-m3-msg.wipro.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4223A04BF7D1B941A25246ADD0462FF5CD7C15@blr-m3-msg.wipro.com> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/137 X-Sequence-Number: 10225 On Mon, Sep 08, 2003 at 11:43:42 +0530, Ravi T Ramachandra wrote: > > SELECT * FROM TABLE A WHERE COL1 = 1 AND COL2 = 'ABC'. > > We have created index definition as follows > > CREATE INDEX IDX ON A(COL1, COL2); > > Explain on the above statement shows it is sequential scan. The > process size for the postmaster shows as 4MB (is this normal ?) While Nathan's advice may be useful for you, it probably isn't causing the problem you are seeing. Your problem is most likely that COL isn't an INTEGER (aka INT or INT4). Try using single quotes around '1'.