Another way to install PostgreSQL is via a package installer such as yum on Fedora. Depending on how you installed PostgreSQL, you may have to configure its authentication mechanisms for the rest of the following commands to work. One quick way to get PostgreSQL up and running is to edit its data/pg_hba.conf file such that it trusts all users on the box in which it is installed. You do this by having lines like the following in that file:
local all all trust
host all all 127.0.0.1/32 trust
You may also want to change the PostgreSQL user's password; as root execute:
You may find that you have to initialize the database if this is the very first time you are starting a newly installed PostgreSQL. If the above start command fails, try this first and then execute the start command afterwards:
service postgresql initdb
For Windows:
net start pgsql-8.2
Create a PostgreSQL role named rhqadmin with password rhqadmin:
If you are going to use this PostgreSQL installation for more than just demo purposes or simple development, go to the PostgreSQL Preparation page for more advanced settings you'll need to prepare this PostgreSQL for production use with RHQ.
It seems to me that step 4 should include the "-P" switch so the user can set the password to "rhqadmin".