Re: COPY when 'filename' is a directory

Поиск
Список
Период
Сортировка
От Brent Verner
Тема Re: COPY when 'filename' is a directory
Дата
Msg-id 20020117070810.A39362@rcfile.org
обсуждение исходный текст
Ответ на COPY when 'filename' is a directory  (Douglas Trainor <trainor@uic.edu>)
Ответы Re: COPY when 'filename' is a directory  (Brent Verner <brent@rcfile.org>)
Список pgsql-bugs
[2002-01-16 17:47] Douglas Trainor said:
| I'd like to report a bug in 7.1.3 psql (at least on a 64-bit Alpha Linux box).
| Maybe someone can confirm this or maybe it's fixed in 7.2

The attached patch is for 7.2, but might apply (with some fuzz) to 7.1.x.

files:
  src/backend/commands/copy.c
  src/bin/psql/copy.c

note:
  Add fstat / S_ISDIR checks to make sure we're not trying to use a directory
  for COPY TO/FROM.

cheers.
  brent

--
"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 по дате отправления:

Предыдущее
От: "Michael Beckstette"
Дата:
Сообщение: Postmaster crash
Следующее
От: Brent Verner
Дата:
Сообщение: Re: COPY when 'filename' is a directory