Re: archive_commnad parameter question

Поиск
Список
Период
Сортировка
От Gavan Schneider
Тема Re: archive_commnad parameter question
Дата
Msg-id 2CE08B0E-618F-42FE-8CB4-B4F160CF42B6@pendari.org
обсуждение исходный текст
Ответ на archive_commnad parameter question  (Allie Crawford <CrawfordMA@ChurchofJesusChrist.org>)
Ответы Stream Replication not working  (Allie Crawford <CrawfordMA@ChurchofJesusChrist.org>)
Список pgsql-general
On 20 Apr 2021, at 7:09, Allie Crawford wrote:

> archive_command = 'test ! -f /mnt/server/archivedir/%f && cp %p 
> /mnt/server/archivedir/%f'  # Unix
>
> Does anybody know what is “test” representing in this parameter 
> configuration?
>
my_unix_prompt> man test

gives:
     Tests  the  expression given and sets the exit status to 0 if true, 
and 1 if false. An expression is made up
      of one or more operators and their arguments.

In other words “test” here is a unix command which evaluated the 
expression supplied via the arguments.
Mostly used in its alternate form of “[ … ]” in shell scripts

Gavan Schneider
——
Gavan Schneider, Sodwalls, NSW, Australia
Explanations exist; they have existed for all time; there is always a 
well-known solution to every human problem — neat, plausible, and 
wrong.
— H. L. Mencken, 1920



В списке pgsql-general по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: archive_commnad parameter question
Следующее
От: "Peter J. Holzer"
Дата:
Сообщение: Re: archive_commnad parameter question