RE: BUG #19392: PG_UPGRADE is non-functional on Windows - Mailing list pgsql-bugs

From Jeff Laing
Subject RE: BUG #19392: PG_UPGRADE is non-functional on Windows
Date
Msg-id DU0PR02MB822060E185DE9DB06AAC351A8F98A@DU0PR02MB8220.eurprd02.prod.outlook.com
Whole thread Raw
In response to Re: BUG #19392: PG_UPGRADE is non-functional on Windows  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: BUG #19392: PG_UPGRADE is non-functional on Windows
List pgsql-bugs

Mea culpa, I apologise to the list for misreading the source code.

 

My problem stemmed from pg_upgrade needing to have the superuser password available via PGPASS (or PGPASSWORD).  It’s not clear why it included the word “postmaster” in the error message which sent me off down a rathole of “it has no idea what it’s doing, perhaps its connecting to the wrong instance, etc…”

 

>>> port 5432 failed: fe_sendauth: no password supplied could not connect to source postmaster started with the command

 

I do think that having it check for not having a password and actually announcing that up front would be an improvement, rather than doing the compatibility checks, etc and waiting until it tries to startup before failing cryptically.

 

Nevertheless, I have successfully upgraded my V16 to V18 using pg_upgrade on Windows 11.

 

I can’t see how I close the ticket, but it can certainly be closed as PEBKAC

 

Jeff

 

From: Andrew Dunstan <andrew@dunslane.net>
Sent: Wednesday, 4 February 2026 11:33 PM
To: David G. Johnston <david.g.johnston@gmail.com>; Jeff Laing <jeff.laing@spatialnetworx.ai>; pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #19392: PG_UPGRADE is non-functional on Windows

 

 

On 2026-02-04 We 1:43 AM, David G. Johnston wrote:

On Tuesday, February 3, 2026, PG Bug reporting form <noreply@postgresql.org> wrote:

The following bug has been logged on the website:

Bug reference:      19392
Logged by:          Jeff Laing
Email address:      jeff.laing@spatialnetworx.ai
PostgreSQL version: 18.1
Operating system:   Windows 11
Description:       

After struggling with it for a while, I’ve come to the conclusion that
PG_UPGRADE is not functional on Windows.

 

This is a very hard to accept premise and this bug report doesn’t support it.

 

 

 

pg_upgrade is tested on Windows all the time, both in the buildfarm and in CI, so the statement that it is not functional doesn't add up.

 

cheers

 

andrew

 

 

--
Andrew Dunstan
EDB: https://www.enterprisedb.com

pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #19393: pg_upgrade fails with duplicate key violation when CHECK constraint named *_not_null exists
Next
From: "David G. Johnston"
Date:
Subject: Re: BUG #19392: PG_UPGRADE is non-functional on Windows