pgsql: In pg_upgrade on Windows, check if the directory is writable by

Started by Bruce Momjianabout 15 years ago1 messagescomitters
Jump to latest
#1Bruce Momjian
bruce@momjian.us

In pg_upgrade on Windows, check if the directory is writable by actually
creating and removing a file because access() doesn't work on that
platform.

Backpatch to 9.1 where this check was added.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/081a5518c0a7dcccfc76a12ae9d593648b68ce53

Modified Files
--------------
contrib/pg_upgrade/exec.c | 41 ++++++++++++++++++++++++++++++++---------
1 files changed, 32 insertions(+), 9 deletions(-)