From: | Abbas <abbas(dot)dba(at)gmail(dot)com> |
---|---|
To: | Josef Wolf <jw(at)raven(dot)inka(dot)de> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: pg_ctl with unix domain socket? |
Date: | 2009-09-01 11:58:46 |
Message-ID: | bb2cdf790909010458t3955c655gf95e549c63a11b7f@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Tue, Sep 1, 2009 at 4:58 PM, Josef Wolf <jw(at)raven(dot)inka(dot)de> wrote:
> Hello,
>
> I have created a fresh cluster with
>
> initdb -D /some/path/pgtest
>
> I can start postgres to run on unix domain socket serving this cluster
> with:
>
> postgres -D /some/path/pgtest -h '' -k /some/path/pgtest
>
> But I'd like to use pg_ctl instead, in order to have clean control:
>
> PGPORT=/some/path/pgtest pg_ctl -D/some/path/pgtest -l postgreslog start
>
> PGPORT should be the port number on which the Postgresql server is
running(5432 is default), and PGDATA=some/path/pgtest .
To start the postgresql server using pg_ctl you can use,
pg_ctl -D PGDATA start
to stop ,
pg_ctl -D PGDATA stop
....
Abbas.
> Any hints how to use pg_ctl to start/stop postgresql on a unix domain
> socket?
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
From | Date | Subject | |
---|---|---|---|
Next Message | Josef Wolf | 2009-09-01 12:34:00 | Re: pg_ctl with unix domain socket? |
Previous Message | Narendra Shah | 2009-09-01 11:53:46 | Re: No buffer space available |