Very slow select - Mailing list pgsql-general

From Stefano Bargioni
Subject Very slow select
Date
Msg-id 3A41C8DE.82C75B20@usc.urbe.it
Whole thread Raw
Responses Re: Very slow select  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
I defined a table with two indexed text columns, a and b, of variable length.
This table contains 287195 rows.
SELECT FROM t WHERE a='my string'; works very fast. The same select made on b is very slow (2 or 3 seconds), as if no
indexexists for column b. 
I'd like to know why. Note that b contains very long strings, more than 500 chars. Is there a limit in indexing?
Thanks. Stefano
--
Dott. Stefano Bargioni
Biblioteca della Pontificia Universita' della Santa Croce - Roma
<mailto:bargioni@usc.urbe.it>                  <http://www.usc.urbe.it>
Personal web page:    <http://www.usc.urbe.it/html/php.script?bargioni>
--- "Si apud bibliothecam hortulum habes, nihil deerit"  (Cicerone) ---

pgsql-general by date:

Previous
From: "Denis A. Doroshenko"
Date:
Subject: to_char() and date_part() oddities...
Next
From: Alessio Bragadini
Date:
Subject: red hat/mysql fiasco