Re: COPY when 'filename' is a directory - Mailing list pgsql-bugs

From Brent Verner
Subject Re: COPY when 'filename' is a directory
Date
Msg-id 20020224015942.GA23089@rcfile.org
Whole thread Raw
In response to Re: COPY when 'filename' is a directory  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [PATCHES] COPY when 'filename' is a directory  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-bugs
[2002-02-23 20:27] Tom Lane said:
| Bruce Momjian <pgman@candle.pha.pa.us> writes:
| >           {
| > +       struct stat st;
| >               fp = AllocateFile(filename, PG_BINARY_R);

| > +         fclose(fp);
|
| This coding is WRONG.  You do not use fclose() to release a file
| opened with AllocateFile.

corrected diff attached.

  b

--
"Develop your talent, man, and leave the world something. Records are
really gifts from people. To think that an artist would love you enough
to share his music with anyone is a beautiful thing."  -- Duane Allman

Attachment

pgsql-bugs by date:

Previous
From: Brent Verner
Date:
Subject: Re: COPY when 'filename' is a directory
Next
From: Bruce Momjian
Date:
Subject: Re: [PATCHES] COPY when 'filename' is a directory