string casting for index usage

Поиск
Список
Период
Сортировка
От Michael Adler
Тема string casting for index usage
Дата
Msg-id 20040318185237.GA3568@pobox.com
обсуждение исходный текст
Ответы Re: string casting for index usage  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
In porting an application from v7.2 and v7.3, I noticed that a join on a varchar column and a text column was ignoring
indicesthat were helpful in v7.2. When I explicitly cast the text to a varchar (or set ENABLE_SEQSCAN TO false) the
indexis scanned and it works as efficiently as in v7.2.  

Obviously there were many casting improvements made in 7.3, but our application doesn't exactly see it that way. Is
explicitcasting the only solution (other than schema modification)? I haven't found anything in the documentation on
thissubject. 

Thanks,
Mike

В списке pgsql-performance по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] fsync method checking
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] fsync method checking