heroku-pg icon indicating copy to clipboard operation
heroku-pg copied to clipboard

Default database not picked for pg:psql when --credential passed in

Open msakrejda opened this issue 7 years ago • 0 comments

maciek@mothra:~$ <<<"select 1" heroku pg:psql -a creds-testing
--> Connecting to postgresql-tetrahedral-77884
Pager usage is off.
Null display is "💩".
 ?column? 
----------
        1
(1 row)

maciek@mothra:~$ <<<"select 1" heroku pg:psql --credential read-only -a creds-testing
 ▸    Couldn't find that addon.
maciek@mothra:~$ <<<"select 1" heroku pg:psql --credential read-only postgresql-tetrahedral-77884 -a creds-testing
--> Connecting to postgresql-tetrahedral-77884
Pager usage is off.
Null display is "💩".
 ?column? 
----------
        1
(1 row)

msakrejda avatar Aug 30 '17 19:08 msakrejda