X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 4DF0511F66E4 for ; Thu, 20 Apr 2006 12:11:34 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: 0.124 X-Spam-Level: X-Spam-Status: No, score=0.124 required=5 tests=[AWL=0.124] Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 8bnk6zkhWvwx for ; Thu, 20 Apr 2006 12:11:22 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 4F1B611F663F for ; Thu, 20 Apr 2006 12:11:20 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k3KFBJHq018663; Thu, 20 Apr 2006 11:11:19 -0400 (EDT) To: "Magnus Hagander" cc: "Peter Eisentraut" , pgsql-hackers@postgresql.org, "Yoshiyuki Asaba" Subject: Re: pg_dump -Ft failed on Windows XP In-reply-to: <6BCB9D8A16AC4241919521715F4D8BCEA352D6@algol.sollentuna.se> References: <6BCB9D8A16AC4241919521715F4D8BCEA352D6@algol.sollentuna.se> Comments: In-reply-to "Magnus Hagander" message dated "Thu, 20 Apr 2006 17:01:42 +0200" Date: Thu, 20 Apr 2006 11:11:19 -0400 Message-ID: <18662.1145545879@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200604/729 X-Sequence-Number: 82452 "Magnus Hagander" writes: > I have repeated the problem with CVS head on XP SP2. It *does* create it > there (or rather, it tries to). > tmpnam() returns a file in the current dir per documentation, but I see > it generating one in the root instead. > tempnam() uses TMP environment variable. > tmpfile() and tmpnam() both use the same function to generate the > filename. Hm. I guess I concur with Peter's conclusion: the cleanest fix is to put our own implementation of tmpfile() into src/port/. regards, tom lane