+ it ops db postgresql tsid How to encode a byte array to base32 in PostgreSQL I have a Java application that generates ids for primary keys by encoding cryptographically random bytes to base32 (RFC4648). How do I do the same with PostgreSQL from an SQL script? The gen_random... wono | tweet Add comment Do you want to delete? YesNo