BUG #3877: Doc Clarification: archive_command and restore_command replacements
От | Kevin Hunt |
---|---|
Тема | BUG #3877: Doc Clarification: archive_command and restore_command replacements |
Дата | |
Msg-id | 200801151912.m0FJCHBV019540@wwwmaster.postgresql.org обсуждение исходный текст |
Ответы |
Re: BUG #3877: Doc Clarification: archive_command and restore_command replacements
|
Список | pgsql-bugs |
The following bug has been logged online: Bug reference: 3877 Logged by: Kevin Hunt Email address: kevin@centropy.com PostgreSQL version: 8.2.6 Operating system: n/a Description: Doc Clarification: archive_command and restore_command replacements Details: When describing archive_command and restore_command (Chapter 23 - Backup and Restore), the replacement strings '%p' and '%f' are explained: "In this string, any %p is replaced by the path name of the file to archive, while any %f is replaced by the file name only." The description of %p is misleading since it is replaced with not just the path, but also filename. The way it is written now, one might expect the string "%p/%f" to resolve to the full path and filename of the file. However, "%p" is sufficient. A small change in the sentence would clarify: "In this string, any %p is replaced by the full path and file name of the file to archive, while any %f is replaced by the file name only." An example showing how the sample commands would be expanded would also help: --- The simplest useful command is something like archive_command = 'cp -i %p /mnt/server/archivedir/%f </dev/null' The above example might be expanded to cp -i /var/lib/postgresql/8.2/main/pgdata/pg_xlog/00000001000000A900000065 /mnt/server/archivedir/00000001000000A900000065 </dev/null
В списке pgsql-bugs по дате отправления: