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

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: In pg_upgrade on Windows, check if the directory is writable by
Date: 2011-07-24 05:43:58
Message-ID: E1QkrTq-00036p-3a@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2011-07-24 19:18:48 pgsql: Use OpenSSL's SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER flag.
Previous Message Andrew Dunstan 2011-07-23 23:33:58 pgsql: Unbreak Windows builds broken by EDITOR_LINENUMBER_ARG change.