Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id D9BFC9F9AFF for ; Fri, 14 Sep 2007 01:16:21 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 50925-03 for ; Fri, 14 Sep 2007 01:16:13 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from momjian.us (momjian.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id 2AB699F9BA4 for ; Fri, 14 Sep 2007 01:16:14 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id l8E4GEM28623; Fri, 14 Sep 2007 00:16:14 -0400 (EDT) From: Bruce Momjian Message-Id: <200709140416.l8E4GEM28623@momjian.us> Subject: Re: tar, but not gnu tar In-Reply-To: <200708241359.44560.peter_e@gmx.net> To: Peter Eisentraut Date: Fri, 14 Sep 2007 00:16:14 -0400 (EDT) CC: pgsql-admin@postgresql.org, Tom Lane , Tena Sakai , Kenneth Marshall , Kevin Grittner X-Mailer: ELM [version 2.4ME+ PL123] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/96 X-Sequence-Number: 26857 Peter Eisentraut wrote: > Am Freitag, 24. August 2007 03:58 schrieb Tom Lane: > > "Tena Sakai" writes: > > >> This seems to contradict what we say about GNU tar? > > >> Is this GNU tar? What version? > > > > > > Yes, it is GNU tar v1.14 > > > > FWIW, I tried this on Fedora Core 6 while running pgbench: > > > > [tgl@rh2 ~]$ tar --version > > tar (GNU tar) 1.15.1 > > [tgl@rh2 ~]$ tar cf t.tar $PGDATA > > tar: Removing leading `/' from member names > > tar: /home/tgl/testversion/data/pg_xlog/000000010000000000000003: file > > changed as we read it [tgl@rh2 ~]$ echo $? > > 0 > > [tgl@rh2 ~]$ > > > > ISTR that the original caution was against writing scripts that assume > > anything being emitted to stderr must indicate a problem. > > The relevant NEWS entry from GNU tar 1.16 is: > > """ > * After creating an archive, tar exits with code 1 if some files were > changed while being read. Previous versions exited with code 2 (fatal > error), and only if some files were truncated while being archived. Docs updated and backpatched to 8.2.X: Also, some versions of GNU tar consider it an error if a file was truncated while tar is copying it. Fortunately, GNU tar versions 1.16 and later exits with 1 if a file was changed during the backup, and 2 for other errors. -- Bruce Momjian http://momjian.us EnterpriseDB http://www.enterprisedb.com + If your life is a hard drive, Christ can be your backup. +