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-19 16:50:55
Message-ID: CAKteAhGVvvOLhiav1-Cwu9_JN_EW80Rao_MBsYMO0QfbWpbJFw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I propose to allow the `-` char in allowed 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

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2017-05-19 17:05:50 Re: [POC] hash partitioning
Previous Message Tom Lane 2017-05-19 16:49:10 Re: Preliminary results for proposed new pgindent implementation