OSDN Git Service

Don't use "cp -i" in the example WAL archive_command.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 17 Jun 2011 23:13:03 +0000 (19:13 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 17 Jun 2011 23:13:03 +0000 (19:13 -0400)
commita2624c687db3a3edcf5995773e47e9fef3e62a8c
tree1ce1d63699c76999712f6ae49ba75f6eef13470b
parentddef31c15c663626fc1804467f4c2ce420598796
Don't use "cp -i" in the example WAL archive_command.

This is a dangerous example to provide because on machines with GNU cp,
it will silently do the wrong thing and risk archive corruption.  Worse,
during the 9.0 cycle somebody "improved" the discussion by removing the
warning that used to be there about that, and instead leaving the
impression that the command would work as desired on most Unixen.
It doesn't.  Try to rectify the damage by providing an example that is safe
most everywhere, and then noting that you can try cp -i if you want but
you'd better test that.

In back-patching this to all supported branches, I also added an example
command for Windows, which wasn't provided before 9.0.
doc/src/sgml/backup.sgml