← All projects
Project record1 mention
Originally shared on Hacker News

plid

A Postgres extension, built with pgrx, that builds on ULID to add prefixes to generated identifiers. It provides a gen_plid function that returns prefixed ULID-style IDs such as u_06DHRQH6SJT7N2WEQK4910R, with the aim of matching the storage size of a UUID.

Last shared
01 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. plid

    A Postgres extension, built with pgrx, that builds on ULID to add prefixes to generated identifiers. It provides a gen_plid function that returns prefixed ULID-style IDs such as u_06DHRQH6SJT7N2WEQK4910R, with the aim of matching the storage size of a UUID.

    Posted by @K0nserv · Original source ↗

    Source text · @K0nserv · · Source ↗

    Yesterday I built most of a Postgres extension, using the excellent pgrx[1] project, that build on ulid to add prefixes. With it you get something like this plid=# SELECT gen_plid('u'); gen_plid --------------------------- u_06DHRQH6SJT7N2WEQK4910R (1 row)