COPY file descriptor leak - Mailing list pgsql-hackers

From Bruce Momjian
Subject COPY file descriptor leak
Date
Msg-id 199808291841.OAA11759@candle.pha.pa.us
Whole thread Raw
List pgsql-hackers
If a COPY failed, the file was never closed.  The new code closes any
open file descriptors when copy is called after a failure.

I made the file descriptor 'static' and set a flag to remember if I
closed the one I used previously.


--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: new DEV FAQ item
Next
From: Bruce Momjian
Date:
Subject: jdbc changes in 6.4