Re: BUG #5451: pg_restore doesn't close input .tar archive

Поиск
Список
Период
Сортировка
От Pavel Golub
Тема Re: BUG #5451: pg_restore doesn't close input .tar archive
Дата
Msg-id 1002678266.20100507085125@gf.microolap.com
обсуждение исходный текст
Ответ на Re: BUG #5451: pg_restore doesn't close input .tar archive  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: BUG #5451: pg_restore doesn't close input .tar archive  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Hello, Tom.

You wrote:

TL> "Pavel Golub" <pavel@microolap.com> writes:
>> pg_restore doesn't close input .tar archive file after restore process.
>> However, file is closed after pg_restore termination, I suppose it's not
>> correct behaviour.

TL> I'm not sure what distinction you're trying to draw.  Do you want us to
TL> add a close() just before exit()?  If so, what for?

First of all, for uniformity I guess. :) .backup files are closed
properly.

And secondly, I'm using these sources in my project and I
need input file to be closed. Of course, I can find the place
where to insert close() by myself, but I beleive that this must be done in the
official release.

TL>                         regards, tom lane



--
With best wishes,
 Pavel                          mailto:pavel@gf.microolap.com

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

Предыдущее
От: "Chris Copeland"
Дата:
Сообщение: BUG #5452: Server core dumps coming out of recovery mode
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: BUG #5452: Server core dumps coming out of recovery mode