utf8 字符集中 Postgres Ltree 标签中的有效字符

valid characters in Postgres Ltree label in utf8 charset

Postgres Ltree 的文档说

A label is a sequence of alphanumeric characters and underscores (for example, in C locale the characters A-Za-z0-9_ are allowed). Labels must be less than 256 bytes long.

但是,它并没有说如果我们将locale设置为'en_US.UTF-8',那么在Postgres Ltree中可以使用什么有效字符。那么,Ltree的标签可以使用破折号吗?

抱歉没有更新答案。

是的,我终于弄明白是我们的一位 DBA 更改了 ltree 的源代码并重新编译它以支持 dash(-) 个字符。我们有一个 table 超过 6B 条记录。