...
Code Block |
---|
sudo -u postgres /Library/PostgreSQL/9.0/bin/pg_ctl start -D /Library/PostgreSQL/9.0/data/
|
The EDB installed version already writes logs in the data/pg_log/ directory so no need to add the -l argument.
...
Code Block |
---|
sudo -u postgres /Library/PostgreSQL/9.0/bin/pg_ctl stop -D /Library/PostgreSQL/9.0/data/
|
You need to provide the location of the database cluster because you can have multiple instances of PostgreSQL running with different data directories.
...