I think the title says it all, but how does this work?
If a salt is generated randomly, wouldn't that make it impossible to later compare?
I'm following these docs: https://www.postgresql.org/docs/current/static/pgcrypto.html (F.25.2. Password Hashing Functions)