Re: [SQL] LIKE on index not working

2004-07-22 Thread Chris Cox
abases? What a pain! Chris - Original Message - From: "Peter Eisentraut" <[EMAIL PROTECTED]> To: "Chris Cox" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, July 22, 2004 10:41 PM Subject: Re: [SQL] LIKE on index not working > Am Do

Re: [SQL] LIKE on index not working

2004-07-22 Thread Tom Lane
"Chris Cox" <[EMAIL PROTECTED]> writes: > For some reason I just can't get this to use the index for the following > query. I'm using PostgreSQL 7.3.4. It works for me in 7.3.6 (see below). I'd guess that you are using a non-LIKE-safe locale setting --- can you get LIKE to use indexes at all? r

Re: [SQL] LIKE on index not working

2004-07-22 Thread Chris Browne
[EMAIL PROTECTED] ("Chris Cox") writes: > Hi all, > > For some reason I just can't get this to use the index for the following > query. I'm using PostgreSQL 7.3.4. > > Here's the details (let me know if you need anymore information to provide > any assistance): > > Indexes: person_pkey primary key

Re: [SQL] LIKE on index not working

2004-07-22 Thread Peter Eisentraut
Am Donnerstag, 22. Juli 2004 09:38 schrieb Chris Cox: > For some reason I just can't get this to use the index for the following > query. I'm using PostgreSQL 7.3.4. In 7.3, LIKE cannot use an index unless you set the locale to C. In 7.4, LIKE can use an index, but it has to be a different kind

[SQL] LIKE on index not working

2004-07-22 Thread Chris Cox
Hi all, For some reason I just can't get this to use the index for the following query. I'm using PostgreSQL 7.3.4. Here's the details (let me know if you need anymore information to provide any assistance): Indexes: person_pkey primary key btree (personid), ix_person_active btree (bac