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.
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.

xinzweb/gpdb,greenplum-db/gpdb,pavanvd/postgres-xl,lisakowen/gpdb,postmind-net/postgres-xl,kmjungersen/PostgresXL,arcivanov/postgres-xl,50wu/gpdb,yazun/postgres-xl,tpostgres-projects/tPostgres,lisakowen/gpdb,xinzweb/gpdb,arcivanov/postgres-xl,oberstet/postgres-xl,50wu/gpdb,lisakowen/gpdb,jmcatamney/gpdb,ovr/postgres-xl,zeroae/postgres-xl,kmjungersen/PostgresXL,yazun/postgres-xl,tpostgres-projects/tPostgres,ashwinstar/gpdb,pavanvd/postgres-xl,adam8157/gpdb,Postgres-XL/Postgres-XL,tpostgres-projects/tPostgres,snaga/postgres-xl,kmjungersen/PostgresXL,pavanvd/postgres-xl,snaga/postgres-xl,postmind-net/postgres-xl,jmcatamney/gpdb,jmcatamney/gpdb,greenplum-db/gpdb,greenplum-db/gpdb,snaga/postgres-xl,50wu/gpdb,zeroae/postgres-xl,adam8157/gpdb,adam8157/gpdb,ovr/postgres-xl,Postgres-XL/Postgres-XL,adam8157/gpdb,adam8157/gpdb,lisakowen/gpdb,techdragon/Postgres-XL,postmind-net/postgres-xl,jmcatamney/gpdb,zeroae/postgres-xl,snaga/postgres-xl,jmcatamney/gpdb,50wu/gpdb,greenplum-db/gpdb,xinzweb/gpdb,postmind-net/postgres-xl,zeroae/postgres-xl,xinzweb/gpdb,techdragon/Postgres-XL,greenplum-db/gpdb,greenplum-db/gpdb,pavanvd/postgres-xl,techdragon/Postgres-XL,xinzweb/gpdb,lisakowen/gpdb,kmjungersen/PostgresXL,tpostgres-projects/tPostgres,ashwinstar/gpdb,kmjungersen/PostgresXL,yazun/postgres-xl,Postgres-XL/Postgres-XL,tpostgres-projects/tPostgres,yazun/postgres-xl,ovr/postgres-xl,oberstet/postgres-xl,ashwinstar/gpdb,adam8157/gpdb,Postgres-XL/Postgres-XL,jmcatamney/gpdb,50wu/gpdb,yazun/postgres-xl,techdragon/Postgres-XL,arcivanov/postgres-xl,ovr/postgres-xl,50wu/gpdb,greenplum-db/gpdb,zeroae/postgres-xl,arcivanov/postgres-xl,jmcatamney/gpdb,adam8157/gpdb,50wu/gpdb,Postgres-XL/Postgres-XL,jmcatamney/gpdb,ashwinstar/gpdb,oberstet/postgres-xl,oberstet/postgres-xl,pavanvd/postgres-xl,xinzweb/gpdb,ashwinstar/gpdb,lisakowen/gpdb,xinzweb/gpdb,lisakowen/gpdb,arcivanov/postgres-xl,postmind-net/postgres-xl,ashwinstar/gpdb,techdragon/Postgres-XL,ashwinstar/gpdb,ashwinstar/gpdb,50wu/gpdb,snaga/postgres-xl,ovr/postgres-xl,oberstet/postgres-xl,arcivanov/postgres-xl,adam8157/gpdb,xinzweb/gpdb,lisakowen/gpdb,greenplum-db/gpdb