Re: BUG #1325: like error

From: Richard Huxton <dev(at)archonet(dot)com>
To: gregory <gperuch(at)citer(dot)fr>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1325: like error
Date: 2004-11-18 11:56:50
Message-ID: 419C8E02.504@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PostgreSQL Bugs List wrote:
> The following bug has been logged online:
>
> Bug reference: 1325
> Logged by: gregory
> Email address: gperuch(at)citer(dot)fr
> PostgreSQL version: 8.0 Beta
> Operating system: win2000
> Description: like error

> after
> I copy 5 millions lignes on the table

> select * from tbinvoicerows
> where invoicecd like 'FLOCAA00000025%'
>
> result in 40 secondes with 2 records BUG
> Bug : the result is good but I expect a result faster as the first select
> (like in mssql 7)

Almost certainly not a bug - you might be better subscribing to the
general/sql/performance mailing lists for this.

You want to:
1. VACUUM ANALYZE the table
2. Check your database was initialised with the "C" locale
3. Examine EXPLAIN ANALYZE to see how many rows the planner is expecting.

You can find plenty of discussion of all of these in the mailing list
archives. Also you might want to read the FAQ, particularly section 4.8
http://www.postgresql.org/docs/faqs/FAQ.html
--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Stephan Szabo 2004-11-18 14:18:44 Re: BUG #1325: like error
Previous Message PostgreSQL Bugs List 2004-11-18 10:14:21 BUG #1325: like error