Howtosetpgsql S3
From Haiku Max Wiki
Now you are ready to start the PostreSQL. There are 2 ways to do that:
1) Create a new StyledEdit document and put this in it:
#!/bin/sh export PGDATA=/boot/home/databases export PGTZ="Europe/London" export PGDATESTYLE="European" /boot/home/config/bin/pg_ctl start -l /boot/home/pglogfile -D /boot/home/databases -o -i
Now, save the file as startpg.sh in the /boot/home/database folder. Right click on the file in the Tracker and select Get info. Go to permissions and check all Execute permissions. This will make the file an executable script. Next, create a link for the file in the folder /boot/home/config/ZetaMenu/Autostart. This will ensure that the next time you reboot, the apache server will start.
2)Edit the UserBootscript in /boot/home/config/boot. Add the following lines:
export PGDATA=/boot/home/databases export PGTZ="Europe/London" export PGDATESTYLE="European" /boot/home/config/bin/pg_ctl start -l /boot/home/pglogfile -D /boot/home/databases -o -i
and save. Next boot, PostgreSQL will work.
