How to change the default user for psql command

When I run the "heroku pg: psql" command, it tries to authenticate me under "justinwong". This is a problem because it is not a user in the list of roles when I run the \ du command in postgres.

The only user that exists should be postgres.

How can I change the default user so that the "heroku pg: psql" or "psql" command will try to log in so that it runs postgres and not justinwong?

+3
postgresql psql heroku


source to share


No one has answered this question yet

Check out similar questions:

1719
How to exit PostgreSQL command line utility: psql
983
How do I switch databases in psql?
922
How to start PostgreSQL server on Mac OS X?
850
How to change PostgreSQL user password?
624
psql: FATAL: database "<user>" does not exist
359
Postgres failed to connect to server
217
PostgreSQL "use database_name" command
2
change the default PSQL user
1
How do I update psql?
0
Fixed psql path getting the following error: local psql command was not found



All Articles
Loading...
X
Show
Funny
Dev
Pics