Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

If you change a user's redshift password, will any pre-existing connections for that user remain valid?

Suppose I have a Redshift user 'person1' with password 'oldpassword', and I have a few existing open Redshift connections using these credentials. I then run the following command:

alter user person1 password 'newpassword'

For any new connections, I will of course have to use the new credentials 'person1' and 'newpassword'. But will the already existing connections remain valid, or will they suddenly stop working after this command?

Thank you so much!

like image 733
Bob Risky Avatar asked Mar 15 '16 03:03

Bob Risky


1 Answers

Changing the password will not immediately terminate ongoing connections. The superuser can manually do that with PG_TERMINATE_BACKEND, if needed.

like image 190
Simon Lepkin Avatar answered Nov 03 '22 05:11

Simon Lepkin