[HACKERS] Re: Why not to use 'pg_ctl start -D ../data' to register posgtresql windows service

2015-11-03 Thread YuanyuanLiu
Ok, Michael! Thanks for your kindly remind! Regards! 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-tp5872282p5872631.html Sent from the PostgreSQL - hackers mailing list archive at Nabble.com

[HACKERS] Re: Why not to use 'pg_ctl start -D ../data' to register posgtresql windows service

2015-11-02 Thread YuanyuanLiu
Yup, I think I totally understand now, the registered postgres service is different from "pg_ctl start". To start the postgres windows service needs privileged prompt (to execute net or sc command) or manually(start or stop in windows service list).After the service is started, it can be recog

[HACKERS] Re: Why not to use 'pg_ctl start -D ../data' to register posgtresql windows service

2015-11-01 Thread YuanyuanLiu
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", c

[HACKERS] Why not to use 'pg_ctl start -D ../data' to register posgtresql windows service

2015-11-01 Thread YuanyuanLiu
Hi, Hackers! Nowadays, I always got problem about postgresql windows service. I find, postgresql usually use the following command to register windows services: /"D:\Program Files (x86)\PostgreSQL\9.4\bin\pg_ctl.exe" runservice -N "postgresql-9.4" -D "D:\Program Files (x86)\PostgreSQL\9.4\data"