Ltree pattern matching - Mailing list pgsql-docs

From PG Doc comments form
Subject Ltree pattern matching
Date
Msg-id 163664521217.8082.8625825759427310603@wrigleys.postgresql.org
Whole thread Raw
Responses Re: Ltree pattern matching  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-docs
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/12/ltree.html
Description:

In v12 ltree doc (I've not checked other versions)
"The behavior of % is a bit complicated. It tries to match words rather than
the entire label. For example foo_bar% matches foo_bar_baz but not
foo_barbaz. If combined with *, prefix matching applies to each word
separately, for example foo_bar%* matches foo1_bar2_baz but not
foo1_br2_baz.

I believe foo1 is in error (if I understood the operators), it should be
foo.

Regards
T

pgsql-docs by date:

Previous
From: Grega Jesih
Date:
Subject: RE: text fields and performance for ETL
Next
From: Laurenz Albe
Date:
Subject: Re: text fields and performance for ETL