Re: Ltree: set of allowed charcters is limited to [A-Za-z0-9_]. Couldthe dash "-" be included? - Mailing list pgsql-general

From David G. Johnston
Subject Re: Ltree: set of allowed charcters is limited to [A-Za-z0-9_]. Couldthe dash "-" be included?
Date
Msg-id CAKFQuwbABEApQRK5UeGs+k5dLX-grD-OqQhHQpv3Cap=RXO_8Q@mail.gmail.com
Whole thread Raw
In response to Ltree: set of allowed charcters is limited to [A-Za-z0-9_]. Could thedash "-" be included?  (joernbs <joern.jaenecke@gmail.com>)
Responses Re: Ltree: set of allowed charcters is limited to [A-Za-z0-9_]. Couldthe dash "-" be included?  (Alban Hertroys <haramrae@gmail.com>)
Re: Ltree: set of allowed charcters is limited to [A-Za-z0-9_]. Couldthe dash "-" be included?  (Alban Hertroys <haramrae@gmail.com>)
Re: Ltree: set of allowed charcters is limited to [A-Za-z0-9_]. Couldthe dash "-" be included?  (joernbs <joern.jaenecke@gmail.com>)
Re: Ltree: set of allowed charcters is limited to [A-Za-z0-9_]. Couldthe dash "-" be included?  (joernbs <joern.jaenecke@gmail.com>)
List pgsql-general
On Saturday, October 27, 2018, joernbs <joern.jaenecke@gmail.com> wrote:
Dear friends,

I would like to use ltree for search paths in a warehouse application, something like "Material-Entry-01.Main-Aisle.Shelf-Aisle-R07/R08.R07-12-03"
Unfortunately I can not use common separators like dash (-) or slash(/)

Documentation states only thes characters [A-Za-z0-9_] are allowed.https://www.postgresql.org/docs/10/static/ltree.html

I don’t see how this would be possible to do with the existing type - too much potential breakage of existing data.  Your example itself shows why using dash as a separator is a bad idea.

David J.

pgsql-general by date:

Previous
From: joernbs
Date:
Subject: Ltree: set of allowed charcters is limited to [A-Za-z0-9_]. Could thedash "-" be included?
Next
From: Adrian Klaver
Date:
Subject: Re: rw_redis_fdw: SQL Errors when statement is within a function