Howtosetpgsql S2
From Haiku Max Wiki
Open a terminal and go to the directory /boot/home/config/bin by typing:
cd /boot/home/config/bin
and press enter. Now type this command:
initdb -D /boot/home/database -U myusername --pwprompt
where username put your username on the system. Default is byron if you haven't setup a new name from the Services in Network Preferences. Now press enter. The system will ask you for a password twice. Be carefull to type it correctly or you will need to delete the contents of /boot/home/database and try again from the initdb command.
NOTE: Remember your username and passord, as you will need it when connecting to PostreSQL.
