Re: COPY when 'filename' is a directory

Поиск
Список
Период
Сортировка
От Brent Verner
Тема Re: COPY when 'filename' is a directory
Дата
Msg-id 20020224015942.GA23089@rcfile.org
обсуждение исходный текст
Ответ на Re: COPY when 'filename' is a directory  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [PATCHES] COPY when 'filename' is a directory  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список 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

Вложения

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Brent Verner
Дата:
Сообщение: Re: COPY when 'filename' is a directory
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [PATCHES] COPY when 'filename' is a directory