In the regress test of ltree module .
--this query return false
SELECT 'a.b.c.d.e'::ltree ~ '*{1}.!b.*.!c.*.e';
?column?
----------
f
(1 row)
--this query return true
SELECT 'a.b.c.d.e'::ltree ~ '*{1}.!b.*{1}.!c.*.e';
?column?
----------
t
(1 row)
I think if the second query return true, the first query should return true too (Obviously the "*" is contain the "*{1}").
Am i right?