Re: What is "return code" for WAL send command

From: zhong ming wu <mr(dot)z(dot)m(dot)wu(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: What is "return code" for WAL send command
Date: 2010-10-24 14:37:06
Message-ID: AANLkTikFgyVyQQUd2=_QzVB7jB_k3VboxHarmb=5R4bg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, Oct 23, 2010 at 11:48 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Harald Fuchs 2010-10-24 16:04:23 Re: Advice needed on application/database authentication/authorization/auditing model
Previous Message Reuven M. Lerner 2010-10-24 13:41:47 Getting ROW_COUNT from MOVE in 8.3