Re: text_pattern_ops index not being used for prefix query - Mailing list pgsql-general

From Alexander Staubo
Subject Re: text_pattern_ops index not being used for prefix query
Date
Msg-id 2172C7ED-714D-4BA5-A584-3F04E7498E90@purefiction.net
Whole thread Raw
In response to Re: text_pattern_ops index not being used for prefix query  (Maxim Boguk <maxim.boguk@gmail.com>)
List pgsql-general
On 20 Oct 2016, at 23:37, Maxim Boguk <maxim.boguk@gmail.com> wrote:
> ​Underscore in like pattern have a special meaning of "any symbol".
> From documentation on the https://www.postgresql.org/docs/9.4/static/functions-matching.html :
> "An underscore (_) in pattern stands for (matches) any single character;"
> This could be useful as well: "To match a literal underscore or percent sign without matching other characters, the
respectivecharacter in pattern must be preceded by the escape character.” 

Oops, how embarrassing. For some reason I thought PostgreSQL only had "%". Thanks for clearing that up.



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: checkpoint write errors
Next
From: Dasitha Karunajeewa
Date:
Subject: Replication rolling back to normal.