Re: What is "return code" for WAL send command - Mailing list pgsql-general

From zhong ming wu
Subject Re: What is "return code" for WAL send command
Date
Msg-id AANLkTikFgyVyQQUd2=_QzVB7jB_k3VboxHarmb=5R4bg@mail.gmail.com
Whole thread Raw
In response to Re: What is "return code" for WAL send command  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: What is "return code" for WAL send command
List pgsql-general
On Sat, Oct 23, 2010 at 11:48 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> A more recent version of Postgres would break that down for you: it
> means the subprocess exited with exit(127).  A look in the shell
> man page suggests this is a "command not found" failure.  Maybe
> there's something flaky about where you have rsync mounted?
>
>                        regards, tom lane
>

Thanks for the reply.

postgres user has both rsync and ssh in its path but is it possible
that it is not using $PATH ?

One other thing is that just before the error the postgres was
restarted by other admin with rc.d/postgresql command
instead of pg_ctl which is what I normally use.  Perhaps
rc.d/postgresql command does not work well with WAL sending command?

But just to be on the safe side I am changing postgresql.conf with
absolute path to rsync as WAL sending command.

pgsql-general by date:

Previous
From: "Reuven M. Lerner"
Date:
Subject: Getting ROW_COUNT from MOVE in 8.3
Next
From: Harald Fuchs
Date:
Subject: Re: Advice needed on application/database authentication/authorization/auditing model