=> select @-@ lseg '((0,0),(1,0))'; ?column?---------- 1(1 row)
=> select @-@ path '((0,0),(1,0))'; ?column?---------- 2(1 row)
----------
It's maybe bug in v8.2.1