Re: pg_upgrade from 9.4 to 10.4

From: Andrew Dunstan <andrew(dot)dunstan(at)2ndquadrant(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Vimalraj A <vimal1805(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: pg_upgrade from 9.4 to 10.4
Date: 2018-08-01 00:05:06
Message-ID: a7d976bf-9eac-992b-2d51-76bcb17242d7@2ndQuadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 07/31/2018 07:08 PM, Bruce Momjian wrote:
> On Tue, Jul 31, 2018 at 06:29:34PM -0400, Tom Lane wrote:
>> Bruce Momjian <bruce(at)momjian(dot)us> writes:
>>> On Tue, Jul 31, 2018 at 03:26:47PM -0400, Tom Lane wrote:
>>>> This patch evidently broke build farm member jacana, although only
>>>> in the 9.3 branch. It's been failing with
>>>> Jul 28 23:22:30 The system cannot find the path specified.
>>> Well, that's interesting. I have a test script that upgrades all
>>> version combinations of Postgres from 9.3 to head and it worked for me.
>>> However, I now see that the tests for checking a live server were wrong,
>>> and 9.3 must have a slightly different test than the others. Fixes
>>> applied. Thanks for finding this so quickly.
>> After poking around a bit more, I think the more likely explanation is
>> that 9.3 was still using the SYSTEMQUOTE macro in commands to be popen'd,
>> and you did not make that adjustment when back-patching into that branch.
>> Note the adjacent pre-existing invocation of pg_controldata:
>>
>> snprintf(cmd, sizeof(cmd), SYSTEMQUOTE "\"%s/%s \"%s\"" SYSTEMQUOTE,
>> cluster->bindir,
>> live_check ? "pg_controldata\"" : "pg_resetxlog\" -n",
> Oh, jacana must be a Windows server with spaces in the file name paths.
> Fixed. Thanks again. I really didn't want to backpatch the original
> fix but had to since it could produce corrupt upgrades.
>

It is a Windows machine, but there should be any spaces in the paths.

cheers

andrew

--
Andrew Dunstan https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ning Yu 2018-08-01 00:08:13 Re: New Defects reported by Coverity Scan for PostgreSQL
Previous Message Andrew Gierth 2018-07-31 23:33:11 Re: Should contrib modules install .h files?