Changing (forgotten) PostgreSQL password

PostgreSQLWhether you lost password for postgres user or you'd just like to change it, the process is very simple. Unlike resetting lost password for MySQL's root user, resetting postgres' password is pretty straightforward and you'll not experience any kind of downtime. This article explains how to change/reset password for postgres user in PostgreSQL 8.4 server that runs on CentOS 5.7, but I've thrown in some tips to help you out if you're using Debian or Ubuntu Linux distro.