Fix for pg_upgrade with non-writeable cwd

Bruce Momjian <bruce@momjian.us>

From: Bruce Momjian <bruce@momjian.us>
To: PostgreSQL-development <pgsql-hackers@postgreSQL.org>
Date: 2012-08-10T21:17:04Z
Lists: pgsql-hackers

Attachments

An EntpriseDB testing report indicated that pg_upgrade crashes if it
can't write into the current directory.  This only happens in 9.2 and
head, so I have applied the attached patch to fix it.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +