Re: pg_dump -Ft failed on Windows XP

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_dump -Ft failed on Windows XP
Дата
Msg-id 12228.1145542237@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pg_dump -Ft failed on Windows XP  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> If the implementation is such that it tries to create the file in a directory
> that the user does not have write permission to, it's a bug.

Well, I think it would be a valid implementation on Unix to always try
to create the file in /tmp, which'd likely fail if someone had revoked
world write on /tmp --- but doing the latter is administrator error,
not a library fault.

OTOH, if / is *supposed* to be non world writable on Win32, then trying
to create temp files there indicates a seriously brain-damaged library.
It should be trying to create the file in a place where the user is
expected to have permission to do it.

Has anyone looked to see with tmpfile() actually does though?  I'm a bit
surprised that it doesn't create stuff in the same directory as tmpnam().
I wonder if Magnus and Yoshiyuki are testing under different conditions.
        regards, tom lane


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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Google SoC--Idea Request
Следующее
От: "Pavel Stehule"
Дата:
Сообщение: Re: please change url for czech postgresql site