Relative Content

Tag Archive for postgresqljdbc

Changing a username

An old Java webapp that I’ve inherited connects to a (dockerized) Postgres database, using a certain username olduser. Since this username was the first name of the developer who is now long gone, I wanted to rename it to a technical user. First, I renamed the user within Postgres (to newuser), which did not raise any errors. NB I renamed the existing user, I didn’t create a new one, and I didn’t change the password.
Next, I replaced all occurrences of olduser in the Java project (XML etc.) with newuser, and redeployed/restarted everything.
Now the log says: