Skip site navigation (1) Skip section navigation (2)

PATCH: pg_basebackup (missing exit on error)

From: Thomas Ogrisegg <tom-nic(at)patches(dot)fnord(dot)at>
To: pgsql-hackers(at)postgresql(dot)org
Subject: PATCH: pg_basebackup (missing exit on error)
Date: 2012-01-24 09:39:19
Message-ID: 20120124093919.GA31031@eristoteles.iwoars.net (view raw or flat)
Thread:
Lists: pgsql-hackers
While testing a backup script, I noticed that pg_basebackup exits with
0, even if it had errors while writing the backup to disk when the
backup file is to be sent to stdout. The attached patch should fix this
problem (and some special cases when the last write fails).

Regards,

Thomas

Attachment: pgbasebackup.patch
Description: text/x-diff (1.3 KB)

Responses

pgsql-hackers by date

Next:From: Fujii MasaoDate: 2012-01-24 09:43:47
Subject: Re: WAL Restore process during recovery
Previous:From: Florian WeimerDate: 2012-01-24 08:16:46
Subject: Re: Page Checksums

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group