I have a table of persons in my postgresql database with the column id with a bigserial type. I want that everytime a new person is created instead of setting a simple number for the id, having one like youtube ones.
To make that i created a function that transform an int into a complex id but I don't how to update te id with that string automatically.
You can try something like this and tweak it to match your needs
To verify this