Revert "Cannot use WL_SOCKET_WRITEABLE without WL_SOCKET_READABLE."
authorJeff Davis
Tue, 15 Dec 2020 07:48:04 +0000 (23:48 -0800)
committerJeff Davis
Tue, 15 Dec 2020 07:48:04 +0000 (23:48 -0800)
commit706d84fe701ef9a8a5b04d2df013e29ea3f7ca74
treeed227b4d8d84f2ec3faecee45aed982f4332f4e0
parent8e456b8e597ed944eca7c24d6613ebff94aacb0b
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