pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Ravi T Ramachandra <ravi.ramachandra@wipro.com>
Cc: pgsql-admin@postgresql.org, Sandeep Bhasin <sandeep.bhasin@wipro.com>
Subject: Re: Performance Issues
Date: Mon, 8 Sep 2003 08:13:19 -0500
Message-ID: <20030908131319.GB14906@wolff.to> (raw)
In-Reply-To: <4223A04BF7D1B941A25246ADD0462FF5CD7C15@blr-m3-msg.wipro.com>
References: <4223A04BF7D1B941A25246ADD0462FF5CD7C15@blr-m3-msg.wipro.com>

On Mon, Sep 08, 2003 at 11:43:42 +0530,
  Ravi T Ramachandra <ravi.ramachandra@wipro.com> 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'.



view thread (12+ messages)  latest in thread

Message-ID: <20030908131319.GB14906@wolff.to>
Permalink:  ../20030908131319.GB14906@wolff.to/
Also on:    postgresql.org/message-id/20030908131319.GB14906@wolff.to

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: bruno@wolff.to, ravi.ramachandra@wipro.com, sandeep.bhasin@wipro.com
  Subject: Re: Performance Issues
  In-Reply-To: <20030908131319.GB14906@wolff.to>
  References: <4223A04BF7D1B941A25246ADD0462FF5CD7C15@blr-m3-msg.wipro.com> <20030908131319.GB14906@wolff.to>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox