25.3. Continuous Archiving : Unix examples with Windows-style variables %-$

From: PG Doc comments form <noreply(at)postgresql(dot)org>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Cc: mi(dot)gh(at)alma(dot)ch
Subject: 25.3. Continuous Archiving : Unix examples with Windows-style variables %-$
Date: 2018-08-23 09:54:13
Message-ID: 153501805361.1369.13266488835849213590@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/9.4/static/continuous-archiving.html
Description:

Most examples in "25.3. Continuous Archiving and Point-in-Time Recovery
(PITR)" use Unix commands and paths, but all variables are written as
Windows batch file variables (Windows "%var" / Unix "$var").

For example, the first one on the page has

archive_command = 'test ! -f /mnt/server/archivedir/%f && cp %p
/mnt/server/archivedir/%f' # Unix

Instead of

archive_command = 'test ! -f /mnt/server/archivedir/$f && cp $p
/mnt/server/archivedir/$f' # Unix

or possibly

archive_command = '[ -f /mnt/server/archivedir/$f ] || cp $p
/mnt/server/archivedir/$f' # Unix

https://www.postgresql.org/docs/current/static/continuous-archiving.html

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Jonathan S. Katz 2018-08-23 12:54:39 Re: 25.3. Continuous Archiving : Unix examples with Windows-style variables %-$
Previous Message Jürgen Purtz 2018-08-23 08:53:35 Re: "System roles" mentioned in psql documentation