Re: [GENERAL] index with LIKE

2004-06-17 Thread John Sidney-Woollett
-- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von John Sidney-Woollett Gesendet: Donnerstag, 17. Juni 2004 11:36 An: Henrik Steffen Cc: 'Scott Marlowe'; pgsql Betreff: Re: [GENERAL] index with LIKE Henrik Steffen wrote: hello scott, disable enable_seqscan s

Re: [GENERAL] index with LIKE

2004-06-17 Thread Henrik Steffen
11:36 > An: Henrik Steffen > Cc: 'Scott Marlowe'; pgsql > Betreff: Re: [GENERAL] index with LIKE > > > Henrik Steffen wrote: > > >hello scott, > > > >disable enable_seqscan still does no force the backend > >to use indexes. > >

Re: [GENERAL] index with LIKE

2004-06-17 Thread John Sidney-Woollett
Henrik Steffen wrote: hello scott, disable enable_seqscan still does no force the backend to use indexes. so it looks like a locale problem, right? I checked lc_* vars on both servers: typemainserver slave lc_collate Cde_DE.UTF-8 lc_ctype[EMAIL PROTECTED] de_DE.UTF-8 lc

Re: [GENERAL] index with LIKE

2004-06-17 Thread Henrik Steffen
hello scott, disable enable_seqscan still does no force the backend to use indexes. so it looks like a locale problem, right? I checked lc_* vars on both servers: typemainserver slave lc_collate Cde_DE.UTF-8 lc_ctype[EMAIL PROTECTED] de_DE.UTF-8 lc_messages [EMAIL

Re: [GENERAL] index with LIKE

2004-06-16 Thread Scott Marlowe
1: Is index capable of being used on the slaves, or are they just making bad decisions? Try disabling seq scans on the slave servers for testing and see if they can use the index. Use "set enable_seqscan = FALSE;" If they can't use the index then, then they are likely in the wrong locale, and y

Re: [GENERAL] index with LIKE

2004-06-16 Thread Henrik Steffen
hi tom, here the results of EXPLAIN ANALYZE SELECT * FROM basiseintrag WHERE kundennummer LIKE '0101%' AND firma LIKE 'top con%'; run on all three servers: main server: QUERY PLAN --

Re: [GENERAL] index with LIKE

2004-06-10 Thread Joseph Shraibman
Martijn van Oosterhout wrote: The classic issue is what encoding are the databases. Anything other than C and like won't use indexes. Unless you use text_pattern_ops. See http://www.postgresql.org/docs/7.4/static/indexes-opclass.html I think this needs to be in the faq. -