pg_receivexlog add synchronous mode - Mailing list pgsql-hackers

From
Subject pg_receivexlog add synchronous mode
Date
Msg-id A9C510524E235E44AE909CD4027AE196BAAA06D7DB@MBX-MSG-SV03.msg.nttdata.co.jp
Whole thread Raw
Responses Re: pg_receivexlog add synchronous mode  (Andres Freund <andres@2ndquadrant.com>)
List pgsql-hackers
Hi,

This patch implements a pg_receivexlog add synchronous mode.
Now, synchronous(synchronous_commit = remote_write) is supported. 
But synchronous(synchronous_commit = remote_write), if the server crashes then WAL file may not to be flushed to disk ,
causingdata loss. 
 

Synchronous(synchronous_commit = on) mode offers the ability to confirm WAL have been streamed in the same way as
synchronousreplication.
 
If an output is used as a different disk from the directory where the transaction log should be stored.
Prevent the loss of data due to disk failure.

the additional parameter(-m) and replicationslot specify, that its synchronous mode.
All received WAL write after, flush is executed and reply flush position.
Flush is not performed every time write, it is performed collectively like walrecever. 

Regards,

-- 
Furuya Osamu

Attachment

pgsql-hackers by date:

Previous
From: Amit Langote
Date:
Subject: Re: Need to backpatch 2985e16 to 9.3 and further (HS regression test out)
Next
From: Heikki Linnakangas
Date:
Subject: Re: slotname vs slot_name