pgsql: Changed the way IO handlers are added/removed. Remove IO handlers before calling any pgsql functions, so that if it closes the socket, we don't later try to remove IO for already closed socket.
pgsql: Changed the way IO handlers are added/removed.
Remove IO handlers before calling any pgsql functions, so that if it closes
the socket, we don't later try to remove IO for already closed socket.

Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot