]> granicus.if.org Git - postgresql/commit
Refactor libpqwalreceiver
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 30 Nov 2016 17:00:00 +0000 (12:00 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 2 Dec 2016 01:23:28 +0000 (20:23 -0500)
commit78c8c814390f14398e8fd43fe7282cb2e260b50f
tree9c6a71c446c8430fa57754bbf8cf97714e2c4dfb
parent597a87ccc9a6fa8af7f3cf280b1e24e41807d555
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@2ndquadrant.com>
src/backend/replication/libpqwalreceiver/libpqwalreceiver.c
src/backend/replication/walreceiver.c
src/include/replication/walreceiver.h