OSDN Git Service

> I enclose a short patch to reduce the PGARCH_RESTART_INTERVAL from 60
authorBruce Momjian <bruce@momjian.us>
Thu, 2 Dec 2004 22:40:18 +0000 (22:40 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 2 Dec 2004 22:40:18 +0000 (22:40 +0000)
commit12e678201d050ebedda21144ff0f10a34bb48e4a
tree47e7e736f97e46f50b6e70d252ba11989a40d722
parent4ea4f8bd0647d4cc9b349ae825a29b5750784ef4
> I enclose a short patch to reduce the PGARCH_RESTART_INTERVAL from 60
> seconds to 10 seconds. The original number was plucked from thin air
> some months ago, and I'd like to review that now based upon further
> thought, observation and experience.
>
> This change has little or no effect on performance, since the interval
> is there mainly to avoid repeated respawn attempts if archiver fails at
> startup. Archiver start-up time is very quick, so there is little danger
> of exceeding 10 seconds.
>
> On a busy system, if the archiver does die, then many files can build up
> in the 60 seconds before respawning. That xlog file backlog could take
> some time to clear. This then leaves a larger than normal window of data
> loss for a possibly long period.
>
> It's a minor change only, with no other effect on function.

Simon Riggs
src/backend/postmaster/pgarch.c