Commit 792d6edd authored by Tom Lane's avatar Tom Lane

Clean up some misleading references to %p being a full path, per Simon.

parent 1456c5b5
<!-- $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.93 2006/11/04 18:20:27 tgl Exp $ --> <!-- $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.94 2006/11/10 22:32:20 tgl Exp $ -->
<chapter id="backup"> <chapter id="backup">
<title>Backup and Restore</title> <title>Backup and Restore</title>
...@@ -599,7 +599,7 @@ archive_command = 'test ! -f .../%f &amp;&amp; cp %p .../%f' ...@@ -599,7 +599,7 @@ archive_command = 'test ! -f .../%f &amp;&amp; cp %p .../%f'
In writing your archive command, you should assume that the file names to In writing your archive command, you should assume that the file names to
be archived may be up to 64 characters long and may contain any be archived may be up to 64 characters long and may contain any
combination of ASCII letters, digits, and dots. It is not necessary to combination of ASCII letters, digits, and dots. It is not necessary to
remember the original full path (<literal>%p</>) but it is necessary to remember the original relative path (<literal>%p</>) but it is necessary to
remember the file name (<literal>%f</>). remember the file name (<literal>%f</>).
</para> </para>
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.254 2006/11/08 20:12:04 tgl Exp $ * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.255 2006/11/10 22:32:20 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -2434,7 +2434,7 @@ RestoreArchivedFile(char *path, const char *xlogfname, ...@@ -2434,7 +2434,7 @@ RestoreArchivedFile(char *path, const char *xlogfname,
switch (sp[1]) switch (sp[1])
{ {
case 'p': case 'p':
/* %p: full path of target file */ /* %p: relative path of target file */
sp++; sp++;
StrNCpy(dp, xlogpath, endp - dp); StrNCpy(dp, xlogpath, endp - dp);
make_native_path(dp); make_native_path(dp);
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/postmaster/pgarch.c,v 1.25 2006/08/07 17:41:42 tgl Exp $ * $PostgreSQL: pgsql/src/backend/postmaster/pgarch.c,v 1.26 2006/11/10 22:32:20 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -417,7 +417,7 @@ pgarch_archiveXlog(char *xlog) ...@@ -417,7 +417,7 @@ pgarch_archiveXlog(char *xlog)
switch (sp[1]) switch (sp[1])
{ {
case 'p': case 'p':
/* %p: full path of source file */ /* %p: relative path of source file */
sp++; sp++;
StrNCpy(dp, pathname, endp - dp); StrNCpy(dp, pathname, endp - dp);
make_native_path(dp); make_native_path(dp);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment