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

From: Fredric Fredricson <Fredric(dot)Fredricson(at)bonetmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: What is "return code" for WAL send command
Date: 2010-10-25 17:58:32
Message-ID: 4CC5C548.4050704@bonetmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 10/25/2010 01:19 PM, David W Noon wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Mon, 25 Oct 2010 09:49:02 +0200, Fredric Fredricson wrote abour Re:
> [GENERAL] What is "return code" for WAL send command:
>
>> On 10/23/2010 02:01 PM, zhong ming wu wrote:
> [snip]
>>> For some reason it failed recently with "return codes 32512" and I
>>> couldn't find this num. as a valid rsync exit code
>>>
>>> During the time that the error was going on I tried the rsync
>>> command manually and didn't error
>>>
>> I guess you have fallen into the common pitfall that cron does not
>> read bash ini files and does not set the $PATH variable. If you want
>> your scripts to be run by cron you must make them independent of $PATH
>> and other variables set by .bashrc etc.
> One can also specify environment variables at the top of the crontab.
> This overcomes the issue of cron jobs not reading /etc/profile and
> other start-up scripts that are processed by a normal login shell. For
> example, here is my personal crontab:
Ah, yes of course, It was a while ago I played with cron.
"man 5 crontab" is also a good command to know, or
"info crontab" if you prefer those modern inventions.

/Fredric

Attachment Content-Type Size
Fredric_Fredricson.vcf text/x-vcard 207 bytes

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Latrous, Youssef 2010-10-25 18:20:58 Wrong SYSID in WAL segment
Previous Message DM 2010-10-25 17:28:54 Re: Query precision issue