momjian@postgresql.org (Bruce Momjian - CVS) writes:
> Everytime if I do PQconsumeInput (when the backend channel gets
> readable) I check for the return value. (0 == error) and generate a
> notification manually, e.g. fixed string connection_closed) and pass it to the
> TCL event queue.
Was that patch reviewed by anyone? I don't think I've even seen it
successfully posted --- the submitter seemed to be having trouble
attaching it.
From the description, I don't think I trust it much. Event queue stuff
is subtle ...
> The only other thing I had to do is to comment out removing
> all pending events in PgStopNotifyEventSource whenever the connection was
> unexpectedly closed (so the manually generated event will not be deleted).
... and this is *very* likely to break things.
regards, tom lane