Allowing dash character in LTREE

From: Cyril Auburtin <cyril(dot)auburtin(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Allowing dash character in LTREE
Date: 2017-05-20 08:27:34
Message-ID: CAKteAhH2FDH8TpK5nc4AVCvzvGx4qP+bi8Vk9BqjPaOYupYi1Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

It could be useful to allow the `-` char in allowed LTREE label
characters (currently
a-zA-Z0-9_ https://www.postgresql.org/docs/9.6/static/ltree.html)

The reason is to allow to use more easily base64 ids, (like
https://github.com/dylang/shortid, ...), uuid's too in labels

`-` is also not used as a query operator as a plus

source: https://doxygen.postgresql.org/ltree_8h.html#
a1cb5d5dd0c364d720854e8a250967dd1

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2017-05-20 11:33:05 Re: statement_timeout is not working as expected with postgres_fdw
Previous Message Pavel Stehule 2017-05-20 08:03:34 type cache for concat functions