Re: [EXTERNAL] Re: BUG #16835: btree index does not work for where clause using 'foo%'

Поиск
Список
Период
Сортировка
От Zhang, Hongyan
Тема Re: [EXTERNAL] Re: BUG #16835: btree index does not work for where clause using 'foo%'
Дата
Msg-id DD64DE6E-75E6-447E-9343-04A3A9783558@aetna.com
обсуждение исходный текст
Ответ на Re: [EXTERNAL] Re: BUG #16835: btree index does not work for where clause using 'foo%'  (luis.roberto@siscobra.com.br)
Список pgsql-bugs

Thanks, Luis

 

From: "luis.roberto@siscobra.com.br" <luis.roberto@siscobra.com.br>
Date: Friday, January 22, 2021 at 1:28 PM
To: "Zhang, Hongyan" <ZhangH3@aetna.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, pgsql-bugs <pgsql-bugs@lists.postgresql.org>
Subject: Re: [EXTERNAL] Re: BUG #16835: btree index does not work for where clause using 'foo%'

 

**** External Email - Use Caution ****


De: "Zhang, Hongyan" <ZhangH3@aetna.com>
Para: "Tom Lane" <tgl@sss.pgh.pa.us>
Cc: "pgsql-bugs" <pgsql-bugs@lists.postgresql.org>
Enviadas: Sexta-feira, 22 de janeiro de 2021 16:07:22
Assunto: Re: [EXTERNAL] Re: BUG #16835: btree index does not work for where clause using 'foo%'

 

Thanks, Tom.

Locale is en_US.UTF-8.

 

Is there plan to alter that behavior to allow index in non C locale?

 

 

According to documentation:  "However, if your database does not use the C locale you will need to create the index with a special operator class to support indexing of pattern-matching queries;"

 

So you'll have to create the index with a specific operator class.

 

You can use:.

 

CREATE INDEX tbl_col_text_pattern_ops_idx ON tbl(col text_pattern_ops) [1]

 

 



NOTICE TO RECIPIENT OF INFORMATION:

This e-mail may contain confidential or privileged information. If you think you have received this e-mail in error, please advise the sender by reply e-mail and then delete this e-mail immediately.

This e-mail may also contain protected health information (PHI) with information about sensitive medical conditions, including, but not limited to, treatment for substance use disorders, behavioral health, HIV/AIDS, or pregnancy. This type of information may be protected by various federal and/or state laws which prohibit any further disclosure without the express written consent of the person to whom it pertains or as otherwise permitted by law. Any unauthorized further disclosure may be considered a violation of federal and/or state law. A general authorization for the release of medical or other information may NOT be sufficient consent for release of this type of information.

Thank you, Aetna

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

Предыдущее
От: luis.roberto@siscobra.com.br
Дата:
Сообщение: Re: [EXTERNAL] Re: BUG #16835: btree index does not work for where clause using 'foo%'
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: BUG #16825: When building on Windows, cl /? retrun 'x64' not AMD64 and the build does not create x64 environment