Reorder the asynchronous libpq calls for replication connection
authorPeter Eisentraut <peter_e@gmx.net>
Mon, 6 Mar 2017 14:33:26 +0000 (09:33 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Mon, 6 Mar 2017 14:33:26 +0000 (09:33 -0500)
commite434ad39ae7316bcf35fd578dd34ad7e1ff3c25f
tree0977af17b9dc2cd670f7ac486d1b69254796b1ba
parent6f3a13ff058f15d565a30c16c0c2cb14cc994e42
Reorder the asynchronous libpq calls for replication connection

Per libpq documentation, the initial state must be
PGRES_POLLING_WRITING.  Failing to do that appears to cause some issues
on some Windows systems.

From: Petr Jelinek <petr.jelinek@2ndquadrant.com>
src/backend/replication/libpqwalreceiver/libpqwalreceiver.c