Starting the Database Server PostgreSQL
Normally it is better to start postgres in the background. For this, use the usual Unix shell syntax: postgres D /usr/local/pgsql/data >logfile 2>1 . It is important to store the server's stdout and stderr output somewhere, as shown above. It will help for auditing purposes and to diagnose problems.