From: Mário Sérgio G Antunes <mariosergioa@msantunes.com.br>
To: pgsql-sql@postgresql.org
Subject: Table scan instead of index scan
Date: Tue, 24 Jul 2001 10:07:45 -0300
Message-ID: <3B5D7321.8060702@msantunes.com.br> (raw)
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
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: mariosergioa@msantunes.com.br
Subject: Re: Table scan instead of index scan
In-Reply-To: <3B5D7321.8060702@msantunes.com.br>
* 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