pgsql: Refactor libpqwalreceiver

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Refactor libpqwalreceiver
Date: 2016-12-02 01:29:49
Message-ID: E1cCcfd-0008G6-32@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Refactor libpqwalreceiver

The whole walreceiver API is now wrapped into a struct, like most of our
other loadable module APIs. The libpq connection is no longer a global
variable in libpqwalreceiver. Instead, it is encapsulated into a struct
that is passed around the functions. This allows multiple walreceivers
to run at the same time.

Add some rudimentary support for logical replication connections to
libpqwalreceiver.

These changes are mostly cosmetic and are going to be useful for the
future logical replication patches.

From: Petr Jelinek <petr(at)2ndquadrant(dot)com>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/78c8c814390f14398e8fd43fe7282cb2e260b50f

Modified Files
--------------
.../libpqwalreceiver/libpqwalreceiver.c | 266 ++++++++++++---------
src/backend/replication/walreceiver.c | 59 +++--
src/include/replication/walreceiver.h | 83 +++++--
3 files changed, 235 insertions(+), 173 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2016-12-02 01:50:30 Re: pgsql: Use latch instead of select() in walreceiver
Previous Message Peter Eisentraut 2016-12-01 22:39:20 pgsql: Add aggregate_with_argtypes and use it consistently