pgsql: Cannot use WL_SOCKET_WRITEABLE without WL_SOCKET_READABLE. - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Cannot use WL_SOCKET_WRITEABLE without WL_SOCKET_READABLE.
Date
Msg-id E1UAkoe-0008Jn-By@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/3a9e64aa0d96c8ffb6c682b082d0f72b1d373327

Modified Files
--------------
src/backend/replication/walsender.c |   26 ++++++++++++++++----------
1 files changed, 16 insertions(+), 10 deletions(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Add standard file header comment to quotes.c.
Next
From: Heikki Linnakangas
Date:
Subject: Re: pgsql: Add support for piping COPY to/from an external program.