Re: async replication code

From: Stas Kelvich <s(dot)kelvich(at)postgrespro(dot)ru>
To: otheus uibk <otheus(dot)uibk(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: async replication code
Date: 2016-03-16 13:05:46
Message-ID: EF806070-C517-4E7D-ADE8-0FC2EAF2FEEA@postgrespro.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


> On 16 Mar 2016, at 15:52, otheus uibk <otheus(dot)uibk(at)gmail(dot)com> wrote:
>
> Greetings,

Hi

>
> I am new here. Apologetic question: how can i search the archives of this mailing list? Is there some set of magic words to put in Google? Must I wade through 20 pages of hits? Should I download all the archives and grep? :)
>

http://www.postgresql.org/list/

https://wiki.postgresql.org/wiki/Mailing_Lists

> 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2016-03-16 13:32:00 Re: multivariate statistics v14
Previous Message Daniel Verite 2016-03-16 13:02:07 Re: pg_dump / copy bugs with "big lines" ?