pgsql: Cannot use WL_SOCKET_WRITEABLE without WL_SOCKET_READABLE.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Cannot use WL_SOCKET_WRITEABLE without WL_SOCKET_READABLE.
Date: 2013-02-27 17:29:16
Message-ID: E1UAkoe-0008Jn-By@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2013-02-27 19:12:18 Re: pgsql: Add support for piping COPY to/from an external program.
Previous Message Heikki Linnakangas 2013-02-27 16:43:28 pgsql: Add standard file header comment to quotes.c.