Common error with default Phoenix database configuration
It wasted my time twice. You may need to set hostname: “localhost”
in your Phoenix database configuration for development and test. http://iamvery.com/2015/08/29/phoenix-database-config.html
Read next PostgreSQL indexing with Ecto