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)