Cannot use WL_SOCKET_WRITEABLE without WL_SOCKET_READABLE.
Cannot use WL_SOCKET_WRITEABLE without WL_SOCKET_READABLE.

In copy-out mode, the frontend should not send any messages until the
backend has finished streaming, by sending a CopyDone message. I'm not sure
if it would be legal for the client to send a new query before receiving the
CopyDone message from the backend, but trying to support that would require
bigger changes to the backend code structure.

Fixes an assertion failure reported by Fujii Masao.

lisakowen/gpdb,Postgres-XL/Postgres-XL,ovr/postgres-xl,oberstet/postgres-xl,pavanvd/postgres-xl,adam8157/gpdb,ashwinstar/gpdb,ashwinstar/gpdb,50wu/gpdb,jmcatamney/gpdb,50wu/gpdb,ovr/postgres-xl,ashwinstar/gpdb,50wu/gpdb,greenplum-db/gpdb,pavanvd/postgres-xl,greenplum-db/gpdb,yazun/postgres-xl,ashwinstar/gpdb,Postgres-XL/Postgres-XL,adam8157/gpdb,xinzweb/gpdb,lisakowen/gpdb,ashwinstar/gpdb,adam8157/gpdb,pavanvd/postgres-xl,adam8157/gpdb,lisakowen/gpdb,pavanvd/postgres-xl,oberstet/postgres-xl,jmcatamney/gpdb,oberstet/postgres-xl,jmcatamney/gpdb,ovr/postgres-xl,pavanvd/postgres-xl,oberstet/postgres-xl,greenplum-db/gpdb,lisakowen/gpdb,greenplum-db/gpdb,greenplum-db/gpdb,zeroae/postgres-xl,ovr/postgres-xl,50wu/gpdb,yazun/postgres-xl,greenplum-db/gpdb,yazun/postgres-xl,jmcatamney/gpdb,zeroae/postgres-xl,yazun/postgres-xl,xinzweb/gpdb,xinzweb/gpdb,xinzweb/gpdb,jmcatamney/gpdb,Postgres-XL/Postgres-XL,greenplum-db/gpdb,techdragon/Postgres-XL,50wu/gpdb,jmcatamney/gpdb,techdragon/Postgres-XL,50wu/gpdb,jmcatamney/gpdb,Postgres-XL/Postgres-XL,lisakowen/gpdb,techdragon/Postgres-XL,50wu/gpdb,lisakowen/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,techdragon/Postgres-XL,xinzweb/gpdb,oberstet/postgres-xl,adam8157/gpdb,zeroae/postgres-xl,ovr/postgres-xl,lisakowen/gpdb,xinzweb/gpdb,ashwinstar/gpdb,ashwinstar/gpdb,yazun/postgres-xl,50wu/gpdb,adam8157/gpdb,adam8157/gpdb,zeroae/postgres-xl,zeroae/postgres-xl,xinzweb/gpdb,adam8157/gpdb,techdragon/Postgres-XL,Postgres-XL/Postgres-XL,ashwinstar/gpdb,lisakowen/gpdb,xinzweb/gpdb