Re: pg_receivexlog --status-interval add fsync feedback - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: pg_receivexlog --status-interval add fsync feedback
Date
Msg-id CAHGQGwGQ9EQp6hX5tVgVo6ko0hTZnYzwV4F1Rr4yC89Pqdqk3w@mail.gmail.com
Whole thread Raw
In response to pg_receivexlog --status-interval add fsync feedback  (<furuyao@pm.nttdata.co.jp>)
Responses Re: pg_receivexlog --status-interval add fsync feedback
List pgsql-hackers
On Tue, Aug 12, 2014 at 6:19 PM,  <furuyao@pm.nttdata.co.jp> wrote:
> Hi all,
>
> This patch is to add setting to send status packets after fsync to --status-interval of pg_receivexlog.
>
> If -1 is specified to --status-interval, status packets is sent as soon as after fsync.

I don't think that it's good idea to control that behavior by using
--status-interval. I'm sure that there are some users who both want
that behavior and want set the maximum interval between a feedback
is sent back to the server because these settings are available in
walreceiver. But your version of --status-interval doesn't allow those
settings at all. That is, if set to -1, the maximum interval between
each feedback cannot be set. OTOH, if set to the positive number,
feedback-as-soon-as-fsync behavior cannot be enabled. Therefore,
I'm thinking that it's better to introduce new separate option for that
behavior.

Regards,

-- 
Fujii Masao



pgsql-hackers by date:

Previous
From: Haribabu Kommi
Date:
Subject: Re: [BUGS] BUG #9652: inet types don't support min/max
Next
From: Fujii Masao
Date:
Subject: Re: Inconsistent use of --slot/-S in pg_receivexlog and pg_recvlogical