Re: pg_receivexlog add synchronous mode - Mailing list pgsql-hackers

From
Subject Re: pg_receivexlog add synchronous mode
Date
Msg-id A9C510524E235E44AE909CD4027AE196BAAA06D7F4@MBX-MSG-SV03.msg.nttdata.co.jp
Whole thread Raw
In response to Re: pg_receivexlog add synchronous mode  (Fujii Masao <masao.fujii@gmail.com>)
Responses Re: pg_receivexlog add synchronous mode  (Fujii Masao <masao.fujii@gmail.com>)
List pgsql-hackers
> I found that this patch breaks --status-interval option of
> pg_receivexlog when -m option which the patch introduced is supplied.
> When -m is set, pg_receivexlog tries to send the feedback message as soon
> as it flushes WAL file even if status interval timeout has not been passed
> yet. If you want to send the feedback as soon as WAL is written or flushed,
> like walreceiver does, you need to extend --status-interval option, for
> example, so that it accepts the value "-1" which means enabling that
> behavior.
> 
> Including this change in your original patch would make it more difficult
> to review. I think that you should implement this as separate patch.
> Thought?
As your comments, the current specification to ignore the --status-intarvall.
It is necessary to respond immediately to synchronize.

It is necessary to think about specifications the --status-intarvall.
So I revised it to a patch of flushmode which performed flush by a timing same as walreceiver.

A changed part deletes the feedback message after flush, and transmitted the feedback message according to the status
interval.
 
Change to flushmode from syncmode the mode name, and fixed the document.

Regards,

-- 
Furuya Osamu

Attachment

pgsql-hackers by date:

Previous
From: Dilip kumar
Date:
Subject: Re: TODO : Allow parallel cores to be used by vacuumdb [ WIP ]
Next
From: Soroosh Sardari
Date:
Subject: Re: Add a filed to PageHeaderData