change user postgres password pstgresql 13 code example Example: alter user password postgres ALTER USER user_name WITH PASSWORD 'new_password';