From: | YuanyuanLiu <liuyuanyuangogo(at)gmail(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Why not to use 'pg_ctl start -D ../data' to register posgtresql windows service |
Date: | 2015-11-02 07:27:28 |
Message-ID: | 1446449248856-5872294.post@n5.nabble.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi, Michael!
Thanks for your reply!
I knew that postgresql windows service is made by "pg_ctl register -N
serviceName -D dataPath".
And command from service, like "D:\Program Files
(x86)\PostgreSQL\9.4\bin\pg_ctl.exe" runservice -N "postgres-9.4" -D
"D:\Program Files (x86)\PostgreSQL\9.4\data", cannot run manually like
command line.
I have a conclusion:
When we registered postgresql windows service named "postgres-9.4",
we can start the postgresql server by manually starting the windows service
, runing command "net stop postgres-9.4" (need user with administrator
privilege), or runing command "pg_ctl start -D ../path/to/data".
The started postgresql service must be stopped in the same session.
Is this right ?
Looking forward to your reply!
Regard!
Liu Yuanyuan
--
View this message in context: http://postgresql.nabble.com/Why-not-to-use-pg-ctl-start-D-data-to-register-posgtresql-windows-service-tp5872282p5872294.html
Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2015-11-02 07:28:34 | Re: Request: pg_cancel_backend variant that handles 'idle in transaction' sessions |
Previous Message | Michael Paquier | 2015-11-02 07:09:59 | Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby |