]> granicus.if.org Git - postgresql/commit
Use latch instead of select() in walreceiver
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)
commit597a87ccc9a6fa8af7f3cf280b1e24e41807d555
treef869e194ae83b03b7174ea6c8a26565265bc893e
parentb999c247a5df4110a2ae20b01f0f686840169875
Use latch instead of select() in walreceiver

Replace use of poll()/select() by WaitLatchOrSocket(), which is more
portable and flexible.

Also change walreceiver to use its procLatch instead of a custom latch.

From: Petr Jelinek <petr@2ndquadrant.com>
src/backend/postmaster/pgstat.c
src/backend/replication/libpqwalreceiver/libpqwalreceiver.c
src/backend/replication/walreceiver.c
src/backend/replication/walreceiverfuncs.c
src/include/pgstat.h
src/include/replication/walreceiver.h