"maxretries" option of pg_standby doesn't work as expected

Started by Fujii Masaoabout 17 years ago2 messageshackers
Jump to latest
#1Fujii Masao
masao.fujii@gmail.com

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

Attachments:

maxretries_0326.patchapplication/octet-stream; name=maxretries_0326.patchDownload+2-2
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Fujii Masao (#1)
Re: "maxretries" option of pg_standby doesn't work as expected

Fujii Masao <masao.fujii@gmail.com> writes:

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.

Looks correct to me; applied to HEAD and 8.3. Thanks!

regards, tom lane