railway connect Postgres prompting for password

I love being able to use railway run to automatically populate the DATABASE_URL in my development and I was expecting railway connect Postgres to function similarly by setting PGPASSWORD so I wouldn't need to pull down the password and could get to psql quickly, however, it is prompting me for my password. Is this expected? Is there another workflow I can use other than loading in PGPASSWORD manually?
Solution:
I love being able to use railway run to automatically populate the DATABASE_URL in my development and I was expecting railway connect Postgres to function similarly by setting PGPASSWORD so I wouldn't need to pull down the password and could get to psql quickly, however, it is prompting me for my password. Is this expected? Is there another workflow I can use other than loading in PGPASSWORD manually?
Jump to solution
7 Replies
Percy
Percy16mo ago
Project ID: f4bcacee-751f-44ff-8b88-90f1c3c6ea5e
trevornederlof
trevornederlof16mo ago
f4bcacee-751f-44ff-8b88-90f1c3c6ea5e
Brody
Brody16mo ago
just had a look at the cli code for connect, and it indeed does not set the password when connecting to postgre, but it does for the other database types. I will see what can be done about this, great catch!!
trevornederlof
trevornederlof16mo ago
Ah great thank you for checking!
Brody
Brody16mo ago
i have submitted a pr to fix this issue https://github.com/railwayapp/cli/pull/427
trevornederlof
trevornederlof16mo ago
Thank you @Brody !
Brody
Brody16mo ago
no problem, im not sure when it will be released though so keep an eye out for that
Want results from more Discord servers?
Add your server