Streaming replication - Mailing list pgsql-hackers

From Tatsuo Ishii
Subject Streaming replication
Date
Msg-id 20150331.084505.829213205101181910.t-ishii@sraoss.co.jp
Whole thread Raw
Responses Re: Streaming replication
Re: Streaming replication
List pgsql-hackers
In the doc:

25.2.5. Streaming Replication
:
The standby connects to the primary, which streams WAL records to the
standby as they're generated, without waiting for the WAL file to be
filled.

This seems to claim that walsender sends WAL files which has not been
fsync'd yet. However, in walsender.c:
    /*     * Streaming the current timeline on a master.     *     * Attempt to send all data that's already been
writtenout and     * fsync'd to disk.  We cannot go further than what's been written out     * given the current
implementationof XLogRead().  And in any case     * it's unsafe to send WAL that is not securely down to disk on the
* master: if the master subsequently crashes and restarts, slaves     * must not have applied any WAL that gets lost on
themaster.     */
 
This one says walsender sends WAL records as long as there are
fsync'd.

Am I missing something?

Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp



pgsql-hackers by date:

Previous
From: Fabrízio de Royes Mello
Date:
Subject: Re: Doubt about AccessExclusiveLock in ALTER TABLE .. SET ( .. );
Next
From: Jim Nasby
Date:
Subject: Re: pg_dump / copy bugs with "big lines" ?