Revert "Cannot use WL_SOCKET_WRITEABLE without WL_SOCKET_READABLE."
authorJeff Davis <jdavis@postgresql.org>
Tue, 15 Dec 2020 07:47:30 +0000 (23:47 -0800)
committerJeff Davis <jdavis@postgresql.org>
Tue, 15 Dec 2020 07:47:30 +0000 (23:47 -0800)
commita58db3aa10e62e4228aa409ba006014fa07a8ca2
tree5559b7308dfa6bc7fdc28d918d03576829cdbf6a
parent9b584953e7bf91e342af87ef44606acd6206cd1c
Revert "Cannot use WL_SOCKET_WRITEABLE without WL_SOCKET_READABLE."

This reverts commit 3a9e64aa0d96c8ffb6c682b082d0f72b1d373327.

Commit 4bad60e3 fixed the root of the problem that 3a9e64aa worked
around.

This enables proper pipelining of commands after terminating
replication, eliminating an undocumented limitation.

Discussion: https://postgr.es/m/3d57bc29-4459-578b-79cb-7641baf53c57%40iki.fi
Backpatch-through: 9.5
src/backend/replication/walsender.c