public inbox for [email protected]  
help / color / mirror / Atom feed
From: Jeff Laing <[email protected]>
To: [email protected] <[email protected]>
Cc: David G. Johnston <[email protected]>
Cc: Andrew Dunstan <[email protected]>
Subject: RE: BUG #19392: PG_UPGRADE is non-functional on Windows
Date: Wed, 4 Feb 2026 21:53:46 +0000
Message-ID: <DU0PR02MB822060E185DE9DB06AAC351A8F98A@DU0PR02MB8220.eurprd02.prod.outlook.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<CAKFQuwYb54KmC3LXzOVsHNcGht8QqfekVFouza=hj6J7ny=yWA@mail.gmail.com>
	<[email protected]>

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 <[email protected]>
Sent: Wednesday, 4 February 2026 11:33 PM
To: David G. Johnston <[email protected]>; Jeff Laing <[email protected]>; [email protected]
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 <[email protected]<mailto:[email protected]>> wrote:
The following bug has been logged on the website:

Bug reference:      19392
Logged by:          Jeff Laing
Email address:      [email protected]<mailto:[email protected]>
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<https://www.enterprisedb.com/;


reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected]
  Subject: RE: BUG #19392: PG_UPGRADE is non-functional on Windows
  In-Reply-To: <DU0PR02MB822060E185DE9DB06AAC351A8F98A@DU0PR02MB8220.eurprd02.prod.outlook.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox