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

Bruce Momjian <bruce@momjian.us>

Commit: 7f4c34739b183b5cf4e9141e3b2e09b99bf7cbad
Author: Bruce Momjian <bruce@momjian.us>
Date: 2011-07-24T05:43:48Z
Releases: 9.1.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