]> granicus.if.org Git - postgresql/commit
Fix tar files emitted by pg_basebackup to be POSIX conformant.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 28 Sep 2012 19:35:51 +0000 (15:35 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 28 Sep 2012 19:35:51 +0000 (15:35 -0400)
commitdfa6eda5e44f1525aa6b142b8e252f5a79110ee6
treea2409a647f0b49008e3d772ce4f000c076875cb2
parentbc99397563ff88c31078d4bf66b8538c78a08bda
Fix tar files emitted by pg_basebackup to be POSIX conformant.

Back-patch portions of commit 05b555d12bc2ad0d581f48a12b45174db41dc10d.
There doesn't seem to be any reason not to fix pg_basebackup fully, but
we can't change pg_dump's "magic" string without breaking older versions
of pg_restore.  Instead, just patch pg_restore to accept either version
of the magic string, in hopes of avoiding compatibility problems when
9.3 comes out.  I also fixed pg_dump to write the correct 2-block EOF
marker, since that won't create a compatibility problem with pg_restore
and it could help with some versions of tar.

Brian Weaver and Tom Lane
doc/src/sgml/protocol.sgml
src/backend/replication/basebackup.c
src/bin/pg_dump/pg_backup_tar.c