pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: terry.gilbert@sas.com
Subject: Ltree pattern matching
Date: Thu, 11 Nov 2021 15:40:12 +0000
Message-ID: <163664521217.8082.8625825759427310603@wrigleys.postgresql.org> (raw)

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


view thread (3+ messages)  latest in thread

Message-ID: <163664521217.8082.8625825759427310603@wrigleys.postgresql.org>
Permalink:  ../163664521217.8082.8625825759427310603@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/163664521217.8082.8625825759427310603@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, terry.gilbert@sas.com
  Subject: Re: Ltree pattern matching
  In-Reply-To: <163664521217.8082.8625825759427310603@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox