I will ask again: where in the code is the asynchronous replication code? The docs are not detailed/exact enough.
> > Main question: I want to understand very precisely the exact algirithm > used in PG to do asynchronous streaming replication. Eg, I want to know how > the record is written and flushed to the socket and how that happens in > time w.r.t WAL-to-disk and response to client. Will someone please give me > a head start as to where to begin my code-spelunking? > > > > WAL synced to disc, then everything else is happening. > > > http://www.postgresql.org/docs/9.5/static/warm-standby.html#STREAMING-REPLICATION > > --- > Stas Kelvich > Postgres Professional: http://www.postgrespro.com > Russian Postgres Company > > -- Otheus otheus.u...@gmail.com otheus.shell...@uibk.ac.at