How to initialize postgres instance under linux ?
Posted on 2005-05-10
I am new to postgres setup, Actually i am trying to run my ESQL application and test it under red hat linux.
I am trying to initialize the local postgres instance in single user mode.
When i ran
initdb -D /home/aaa/db
it produces following error:
creating directory /home/aaa/db... ok
creating directory /home/aaa/db/base... ok
creating directory /home/aaa/db/global... ok
creating directory /home/aaa/db/pg_xlog... ok
creating directory /home/aaa/db/pg_clog... ok
creating configuration files... ok
creating template1 database in /home/aaa/db/base/1...
initdb: removing data directory "/home/aaa/db"
Even when i have created the directory and ran above command it is producing the same error.
I don't understand actually what is the problem, i have to start this instance. Can any one please let me know what is the problem and how can i resolve this issue ?