January 2019
Beginner
556 pages
14h 19m
English
Pattern matching is the act of checking a given sequence of words for the presence of the constituents of some pattern. There are several factors that affect the result of pattern matching, including the following:
If the text isn't normalized, a text search might not return the expected result. The following examples show how pattern matching can fail with unnormalized text:
postgres=# SELECT 'elephants'::tsvector @@ 'elephant'; ?column? ---------- f(1 row)
In the preceding query, casting elephants to tsvector and the implicit casting of elephant to the query doesn't generate ...
Read now
Unlock full access