"maxretries" option of pg_standby doesn't work as expected - Mailing list pgsql-hackers

From Fujii Masao
Subject "maxretries" option of pg_standby doesn't work as expected
Date
Msg-id 3f0b79eb0903251929v5bd4c075h3b0a382b6f4bf722@mail.gmail.com
Whole thread Raw
Responses Re: "maxretries" option of pg_standby doesn't work as expected  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,

> Set the maximum number of times to retry the copy or link command

maxretries option of pg_standby is documented as above, but actually
indicates the maximum number of times to *try* the copy or link command.
So, if "-r 0" is specified, pg_standby always fails.

Attached is the patch which adjusted the code so that maxretries actually
indicates the number of retry.

Comments?

--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center

Attachment

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: SSL over Unix-domain sockets
Next
From: Robert Haas
Date:
Subject: Re: small but useful patches for text search