Re: pg_upgrade test mods for Windows/Mingw

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Gurjeet Singh <singh(dot)gurjeet(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_upgrade test mods for Windows/Mingw
Date: 2012-09-03 13:57:57
Message-ID: 5044B765.3000401@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On 09/03/2012 09:16 AM, Andrew Dunstan wrote:
>
> On 09/02/2012 11:53 PM, Gurjeet Singh wrote:
>> On Sun, Sep 2, 2012 at 11:29 PM, Andrew Dunstan <andrew(at)dunslane(dot)net
>> <mailto:andrew(at)dunslane(dot)net>> wrote:
>>
>> The attached patch is what I had to do to get pg_upgrade's "make
>> check" to run on Windows under Mingw. Mostly the changes have to
>> do with getting paths right between Windows and MSys, or calling
>> generated .bat files instead of shell scripts.
>>
>>
>> When reading shell script code like this
>>
>> `uname -a | sed 's/.* //'` = Msys
>>
>> and
>>
>> sed -i -e 's,/,\\,g' -e 's,\\s\\q ,/s/q ,' delete_old_cluster.bat
>> 2>/dev/null

BTW, this last one is a hack. pg_upgrade should make sure that it
outputs backslashed paths for rmdir. (In general, the Windows runtime is
quite happy to accept forward-slashed paths, but certain builtin
commands, such as rmdir are not).

cheers

andrew

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Dean Rasheed 2012-09-03 13:59:24 Re: 9.2: Describing a security barrier view in psql
Previous Message Amit Kapila 2012-09-03 13:56:05 Re: Proof of concept: standalone backend with full FE/BE protocol