diff --git a/contrib/ltree/ltree.sql.in b/contrib/ltree/ltree.sql.in
index df32c0c501c974469a6465948393d6351c385c02..c031b84f2bd8f10f2b2f36782655457730b0ce76 100644
--- a/contrib/ltree/ltree.sql.in
+++ b/contrib/ltree/ltree.sql.in
@@ -235,7 +235,7 @@ CREATE OPERATOR @> (
 	RIGHTARG = ltree,
 	PROCEDURE = ltree_isparent,
         COMMUTATOR = '<@',
-        RESTRICT = parentsel,
+        RESTRICT = ltreeparentsel,
 	JOIN = contjoinsel
 );
 
@@ -253,7 +253,7 @@ CREATE OPERATOR <@ (
 	RIGHTARG = ltree,
 	PROCEDURE = ltree_risparent,
         COMMUTATOR = '@>',
-        RESTRICT = parentsel,
+        RESTRICT = ltreeparentsel,
 	JOIN = contjoinsel
 );