'mix ecto.create' errors with: role "postgres" does not exist

Aha! Jupp. That’s what happened in my case.

1 Like

It’s probably better to create the postgres user in order to keep your dev env portable. This is actually documented here and linked in the installation guide, but it’s easy to miss.

3 Likes

Yeah, that’s what I do as well. I don’t want to have my dev.exs file contain personal information (the login username) anyway.

This makes a lot of sense!

Thanks! I did indeed miss that part of the docs. And now it’s sorted!