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-00036r-4I@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
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/7f4c34739b183b5cf4e9141e3b2e09b99bf7cbad

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.