Re: [HACKERS] "pg_ctl promote" exit status

2013-01-25 Thread Dhruv Ahuja
Don't think the attachment made it in the last mail. Attaching now. On 25 January 2013 18:33, Dhruv Ahuja wrote: > May I propose the attached patch. > > Points to note and possibly discuss: > (a) Only exit codes in do_* functions have been changed. > (b) The link to, and

Re: [HACKERS] "pg_ctl promote" exit status

2013-01-25 Thread Dhruv Ahuja
of starting a started service, or an application specific failure? I am equally weighted to opt for the former, but have proposed differently in the patch. On 23 October 2012 17:29, Robert Haas wrote: > On Tue, Oct 23, 2012 at 6:39 AM, Dhruv Ahuja wrote: > > The "pg_ctl pr

[HACKERS] "pg_ctl promote" exit status

2012-10-23 Thread Dhruv Ahuja
Hello The "pg_ctl promote" command returns an exit code of 1 when the server is not in standby mode, and the same exit code of 1 when the server isn't started at all. The only difference at the time being is the string output at the time, which FYI are... pg_ctl: cannot promote server; server is