Re: Archiver restart timer

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Archiver restart timer
Date: 2004-12-02 22:40:17
Message-ID: 200412022240.iB2MeHl11212@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


Patch applied. Thanks.

---------------------------------------------------------------------------

Simon Riggs wrote:
> On Sun, 2004-11-21 at 23:07, Simon Riggs wrote:
> > 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.
>
> ...and now for the diff -c version.... ;-)
>
> --
> Best Regards, Simon Riggs

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2004-12-02 22:48:02 Re: [BUGS] pg_autovacuum in 8beta-dev3 small bug
Previous Message Bruce Momjian 2004-12-02 22:37:05 Re: Unicode characters above 0x10000 #2