branch: elpa/pg
commit feb45455d53baab41560604af66cbd0599c1281d
Author: Eric Marsden <[email protected]>
Commit: Eric Marsden <[email protected]>

    Explain the use of ignore-errors.
---
 pg.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/pg.el b/pg.el
index c4894158121..819d3036ed6 100644
--- a/pg.el
+++ b/pg.el
@@ -2413,6 +2413,9 @@ It will release memory used to buffer the data transfered 
between
 PostgreSQL and Emacs. CON should no longer be used."
   ;; send a Terminate message
   (pg-connection-set-busy con t)
+  ;; If we use the immediate-output mode of sending data to PostgreSQL 
(instead of the buffer-output
+  ;; mode), PostgreSQL can close the network connection before we have 
finished flushing the output.
+  ;; This triggers an Emacs error, which we don't want to propagate to the 
caller here.
   (ignore-errors
     (pg-send-char con ?X)
     (pg-send-uint con 4 4)

Reply via email to