I’ve never successfully backed up a single database and restored it on a clean instance of PostgreSQL. It always fails on roles not existing.
If I create all the roles up front then it works. But it’s a hassle compared to SQLServer where I can backup, restore, create a user and link him to the database user. And it’s done.