pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <craig@2ndquadrant.com>
To: Devrim Gündüz <devrim@gunduz.org>
To: John Scalia <jayknowsunix@gmail.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: postgresql checking return status of archive_command?
Date: Mon, 14 Jul 2014 10:20:00 +0800
Message-ID: <53C33E50.60308@2ndquadrant.com> (raw)
In-Reply-To: <1405087458.4059.10.camel@asus-laptop-03.gunduz.org>
References: <53BFEE46.9050301@gmail.com>
	<1405087458.4059.10.camel@asus-laptop-03.gunduz.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/11/2014 10:04 PM, Devrim Gündüz wrote:
> It does. It will throw an error to log file, if the return code is 
> non-zero.

One thing to watch out for is the unfortunate behaviour of pipe error
handling, though. You want to

set -o pipefail

if you're using pipes.

- -- 
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTwz5EAAoJELBXNkqjr+S2yxcH/jLNX/gqeb3mruemnP6wL5eQ
mJxXq2EUcreyJcUuuE5PqtUtDUZUbqHtfcO+NQkloKDrJ6Oo8YNm7NCVWCBrfqdV
bSCOIJaT6fosZIUY6GlqJXfSI7YZ98FZexXCb1B/r0cQU2NJXqOY9DS/Hae2RDSP
qA83t4dl4boqC46I+s9qjIDKeDr8weXDHzA2Cv8D+nZpOY1ieoC8k98hE+2jJkcN
Lyp+eVhPBaI+Puj8Tp5b5vvXGh1uFQjM73hufNk1QFLvPCpeca/1nzMQ+2FZQXx4
eQDSrC5c2NTFpjikXHxmljfqhzan+XixAhJpMWpIxgCzzwGWIHHtZJvfYcl+ofs=
=ETgw
-----END PGP SIGNATURE-----


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (3+ messages)

Message-ID: <53C33E50.60308@2ndquadrant.com>
Permalink:  ../53C33E50.60308@2ndquadrant.com/
Also on:    postgresql.org/message-id/53C33E50.60308@2ndquadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: craig@2ndquadrant.com, devrim@gunduz.org, jayknowsunix@gmail.com
  Subject: Re: postgresql checking return status of archive_command?
  In-Reply-To: <53C33E50.60308@2ndquadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox