Re: postgresql checking return status of archive_command?

From: Craig Ringer <craig(at)2ndquadrant(dot)com>
To: Devrim Gündüz <devrim(at)gunduz(dot)org>, John Scalia <jayknowsunix(at)gmail(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: postgresql checking return status of archive_command?
Date: 2014-07-14 02:20:00
Message-ID: 53C33E50.60308@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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-----

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message liuyuanyuan 2014-07-14 06:16:59 sql to grant privilege on sequence
Previous Message Craig Ringer 2014-07-14 02:18:16 Re: WAL segment management on a standby