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

Bruce Momjian <bruce@momjian.us>

Commit: 081a5518c0a7dcccfc76a12ae9d593648b68ce53
Author: Bruce Momjian <bruce@momjian.us>
Date: 2011-07-24T05:43:57Z
Releases: 9.2.0
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.

Files

PathChange+/−
contrib/pg_upgrade/exec.c modified +32 −9