"postgres: command not found" / after regular install of postgres and configure new data directory
postgres execution command is psql
and not postgres
postgres is the username
info from pgGettingStarted
To test your connection using psql, run the following command:
psql -U postgres -W
You can also try that
psql -U user_name -h 127.0.0.1 database_name