Re: pg_dump -Ft failed on Windows XP - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pg_dump -Ft failed on Windows XP
Date
Msg-id 12228.1145542237@sss.pgh.pa.us
Whole thread Raw
In response to Re: pg_dump -Ft failed on Windows XP  (Peter Eisentraut <peter_e@gmx.net>)
List 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 by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Google SoC--Idea Request
Next
From: "Pavel Stehule"
Date:
Subject: Re: please change url for czech postgresql site