Re: postgresql and Mac OS X

From: adam_pgsql <adam_pgsql(at)witneyweb(dot)org>
To: Tom Allison <tom(at)tacocat(dot)net>
Cc: pgsql <pgsql-general(at)postgresql(dot)org>
Subject: Re: postgresql and Mac OS X
Date: 2008-11-05 11:53:51
Message-ID: A682013E-BE95-459D-8795-D9262FD08D59@witneyweb.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> When I do the install script in contrib it says I have no rights to
> the directory. It was in /usr/local/pgsql/data/log and I changed it
> to /usr/local/pgsql/log. It was set as root.wheel with 755
> permissions so I suspect it's mad at me because the postgres user
> was left in the cold.

Have you switched on logging in postgresql.conf?

> Now - I have what I hope is the last question related to Mac OSX and
> not so much the Postgresql. How do you start/stop services without
> rebooting the machine? I tried launchctl but it's not listed.

I installed PostgreSQL from source (configured using pgsql as system
username) and use one of:

sudo -u pgsql /usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data start
sudo -u pgsql /usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data stop
sudo -u pgsql /usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data
restart
sudo -u pgsql /usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data
reload

(reload if i have just changed some configuration parameters).

You may have to substitute postgres for pgsql eg

sudo -u postgres /usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data
start

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2008-11-05 12:17:01 Re: pg_casts view (was Re: date_trun() with timezones? (was Re: TIME column ...))
Previous Message Craig Ringer 2008-11-05 11:37:31 Re: Equivalent for AUTOINCREMENT?