To make a copy of, or duplicate, or replicate a PostgresSQL database is very easy.
Just run the following command with the postgres user account: (from http://bytes.com/forum/thread173311.html)
createdb -T olddb newdb