From: Tom Lane <tgl@sss.pgh.pa.us>
To: Magnus Hagander <mha@sollentuna.net>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-hackers@postgresql.org, "Yoshiyuki Asaba" <y-asaba@sraoss.co.jp>
Subject: Re: pg_dump -Ft failed on Windows XP
Date: Thu, 20 Apr 2006 12:07:36 -0400
Message-ID: <19296.1145549256@sss.pgh.pa.us> (raw)
In-Reply-To: <6BCB9D8A16AC4241919521715F4D8BCEA352D7@algol.sollentuna.se>
References: <6BCB9D8A16AC4241919521715F4D8BCEA352D7@algol.sollentuna.se>
"Magnus Hagander" <mha@sollentuna.net> writes:
> Ok. Should be easy enough once the code is fine - can you comment on the
> patch as sent, if the code itself looks right provided i wrap it up in a
> function in port/?
Not sure if the error handling is adequate --- are there any cases
besides EEXIST that should loop?
A look at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt__tempnam.2c_._wtemp...
suggests that tempnam() is also pretty fragile, esp. if you're passing
NULLs. Apparently it won't work at all if TMP isn't set?
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, mha@sollentuna.net, peter_e@gmx.net, y-asaba@sraoss.co.jp
Subject: Re: pg_dump -Ft failed on Windows XP
In-Reply-To: <19296.1145549256@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox