pksunkara / pgx_ulid

Postgres extension for ulid
MIT License
346 stars 21 forks source link

Supporting prefixes for PULID #48

Closed brettinternet closed 4 months ago

brettinternet commented 4 months ago

Hi, how feasible would it be to support a two-byte prefix to create a "PULID" - a prefixed ULID? The first 2 bytes encode the type of the entity such as table "users" having an ID of UR01J2309A8G8NJ776A7XTPFRBG9.

pksunkara commented 4 months ago
  1. I don't intend to support anything like that in this project.
  2. It should be pretty easy to change the existing code to do it if you fork it.