【问题标题】:How do I change the path delimiter for ltree paths in PostgreSQL?如何更改 PostgreSQL 中 ltree 路径的路径分隔符?
【发布时间】:2020-03-18 02:21:39
【问题描述】:

PostgreSQL 中 ltree 的路径分隔符是 '.',因此查询中的路径看起来像 root.child.grand-child.*。但我想用它来存储 CRN 格式的路径,其中分隔符是“:”,或者其他一些分隔符。有没有办法在 PostgreSQL 中做到这一点?

【问题讨论】:

    标签: postgresql tree psql postgresql-9.1 ltree


    【解决方案1】:

    如果不更改 ltree 的源并重新构建扩展,则必须这样做。

    【讨论】:

      猜你喜欢
      • 2013-02-23
      • 1970-01-01
      • 2015-01-15
      • 2022-08-18
      • 2014-01-16
      • 2014-07-29
      • 2018-04-25
      • 2011-06-03
      • 1970-01-01
      相关资源
      最近更新 更多