]> git.ipfire.org Git - thirdparty/postgresql.git/commit
doc: Clarify how to generate backup files with non-exclusive backups
authorMichael Paquier <michael@paquier.xyz>
Fri, 2 Apr 2021 07:37:15 +0000 (16:37 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 2 Apr 2021 07:37:15 +0000 (16:37 +0900)
commiteb5e380a08a2d5ce13cb64d405d2966ffb8944b7
tree9c764b862d74ea2872bfed93f4627330fcd8f517
parent061003b27fde996b612d58cbdef6b1e0717e3063
doc: Clarify how to generate backup files with non-exclusive backups

The current instructions describing how to write the backup_label and
tablespace_map files are confusing.  For example, opening a file in text
mode on Windows and copy-pasting the file's contents would result in a
failure at recovery because of the extra CRLF characters generated.  The
documentation was not stating that clearly, and per discussion this is
not considered as a supported scenario.

This commit extends a bit the documentation to mention that it may be
required to open the file in binary mode before writing its data.

Reported-by: Wang Shenhao
Author: David Steele
Reviewed-by: Andrew Dunstan, Magnus Hagander
Discussion: https://postgr.es/m/8373f61426074f2cb6be92e02f838389@G08CNEXMBPEKD06.g08.fujitsu.local
Backpatch-through: 9.6
doc/src/sgml/backup.sgml