I'm trying to use Postgres on a Mac. After changing the location of the data folder, postgres didnt start. It doesnt give any error message.
I've copied the data folder from another location, and I've tried running
./pg_ctl -D location -l logfile start
from the directory where pg_ctl is located. It gives the message
Server Started, but when i check using
ps -ef | grep postgres, no PID is returned. I wonder if on MacOS X, it's necessary to run initdb again on a Mac - in Windows we can easily change the data folder and it works in any location. Please help me.