Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 1AC16B5DBCE for ; Fri, 17 Jun 2011 13:33:07 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 68090-07 for ; Fri, 17 Jun 2011 16:33:00 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id AC9EFB5DBC8 for ; Fri, 17 Jun 2011 13:33:00 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Fri, 17 Jun 2011 11:32:59 -0500 Message-Id: <4DFB3B68020000250003E7EA@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Fri, 17 Jun 2011 11:32:56 -0500 From: "Kevin Grittner" To: "=?ISO-8859-15?Q?"Martin=20M=FCnstermann"?=" , Subject: Re: archive_command vs. cp -i References: <20110617084057.238070@gmx.net> In-Reply-To: <20110617084057.238070@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/108 X-Sequence-Number: 37734 "Martin Münstermann" wrote: > while setting up a new linux postgresql server, I checked my > archive_command. I noticed that the usual "cp -i f1 f2 < > /dev/null" did NOT as expected: It did not overwrite the file > (PASS), but it returned zero (FAIL, should return error). > > This could be reproduced on CentOS 5.6, RHEL4, and Ubuntu 10.04. I've confirmed on SLES 10 and Ubuntu 9, too. > Should the BACKUP-ARCHIVING-WAL doc be changed? I think so. Given the wide variety of platforms on which the example could silently cause data loss, I *really* don't think we want that in our docs. Someone could blithely copy it into production without testing and not know they had it wrong until a backup failed to restore. -Kevin