Re: Problem with pg_upgrade's directory write check on Windows - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Problem with pg_upgrade's directory write check on Windows
Date
Msg-id 201107231314.p6NDELc27882@momjian.us
Whole thread Raw
In response to Re: Problem with pg_upgrade's directory write check on Windows  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: Problem with pg_upgrade's directory write check on Windows
List pgsql-hackers
Andrew Dunstan wrote:
> > We do use access() in a few other places in our code, but not for
> > directory permission checks.
> >
> > Any ideas on a solution?  Will checking stat() work?  Do I have to try
> > creating a dummy file and delete it?
> 
> That looks like the obvious solution - it's what came to my mind even 
> before reading this sentence.

Well, the easy fix is to see if ALL_DUMP_FILE
("pg_upgrade_dump_all.sql") exists, and if so remove it, and if not,
create it and remove it.

Should I fix this in pg_upgrade 9.1 for Windows or just in 9.2?  The
check works fine on non-Windows.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + It's impossible for everything to be true. +


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Problem with pg_upgrade's directory write check on Windows
Next
From: Robert Haas
Date:
Subject: Re: Problem with pg_upgrade's directory write check on Windows