COPY file descriptor leak

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: hackers(at)postgreSQL(dot)org (PostgreSQL-development)
Subject: COPY file descriptor leak
Date: 1998-08-29 18:41:28
Message-ID: 199808291841.OAA11759@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)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)

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1998-08-29 19:45:06 jdbc changes in 6.4
Previous Message Bruce Momjian 1998-08-29 18:40:19 new DEV FAQ item