Table scan instead of index scan

From: Mário Sérgio G Antunes <mariosergioa(at)msantunes(dot)com(dot)br>
To: pgsql-sql(at)postgresql(dot)org
Subject: Table scan instead of index scan
Date: 2001-07-24 13:07:45
Message-ID: 3B5D7321.8060702@msantunes.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,

I am sure PostgreSQL is a very powerful product!

I use PostgreSQL 7.1.2.4 in two servers under RedHat 7.0.
Our database has a table like that:
create table tb_client
(
id_client varchar(32),
client_name varchar(40),
bdate date,
...
);

create index xiftb_client on tb_client(id_client);

When I execute the following query:

SELECT * FROM tb_cliente WHERE id_client LIKE '1234%';

One server executes index search and other full table scan.

I don't know the reason.

If you could help me I would appreciate a lot.

Thanks,

Mário Sérgio

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Bhuvan A 2001-07-24 13:33:55 Re: how can we get total records in pg server?
Previous Message David M. Richter 2001-07-24 11:11:33 Re: Query optimizing - paradox behave