Re: async replication code - Mailing list pgsql-hackers

From otheus uibk
Subject Re: async replication code
Date
Msg-id CALbQNd1nJrBqHcX70VpAFC3GeWA1ENQ_Qu3QDCUS93wuDY16Uw@mail.gmail.com
Whole thread Raw
In response to Re: async replication code  (otheus uibk <otheus.uibk@gmail.com>)
List pgsql-hackers
On Wed, Mar 16, 2016 at 8:30 PM, otheus uibk <otheus.uibk@gmail.com> wrote:
I will ask again: where in the code is the asynchronous replication code?  The docs are not detailed/exact enough.


Nevermind. Thomas Munro answered my question in the General list. Quoting:

> Look for WalSndWakeupRequest() in xlog.c, which expands to a call to
> WalSndWakeup in walsender.c which sets latches (= a mechanism for
> waking processes) on all walsenders, and see the WaitLatchOrSocket
> calls in walsender.c which wait for that to happen.

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Performance degradation in commit ac1d794
Next
From: Jim Nasby
Date:
Subject: Re: plpgsql - DECLARE - cannot to use %TYPE or %ROWTYPE for composite types