postgresql linux password code example Example: postgresql linux password postgres=# ALTER USER postgres PASSWORD 'myPassword'; ALTER ROLE