Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vnWc6-008MDl-27 for pgsql-bugs@arkaria.postgresql.org; Wed, 04 Feb 2026 06:43:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vnWc5-009Zd5-1i for pgsql-bugs@arkaria.postgresql.org; Wed, 04 Feb 2026 06:43:45 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vnWc5-009Zcw-0R for pgsql-bugs@lists.postgresql.org; Wed, 04 Feb 2026 06:43:45 +0000 Received: from mail-oo1-xc2c.google.com ([2607:f8b0:4864:20::c2c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vnWc2-00000000Tuy-3igH for pgsql-bugs@lists.postgresql.org; Wed, 04 Feb 2026 06:43:43 +0000 Received: by mail-oo1-xc2c.google.com with SMTP id 006d021491bc7-662f5c4665eso2932486eaf.2 for ; Tue, 03 Feb 2026 22:43:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1770187422; cv=none; d=google.com; s=arc-20240605; b=DBow2XT6R1xCjOxcn/hUyIIW/87+Hy3dEuqhi3Vwa73DFGBdUZTLF7gZpW3/LW+yLp WFlZ4tzekbR0Gyu9kEA+sP/aojMPUelzpzaF3mxzcTjnqeupRB8+JwjHNzNKw8/kbsMA pwIzhvqvsQFNEP53MavsOFIQH7hEaW6LcJlsXUJ1IvYzaykq2RhPQiNfqQP77Yg96xRw CtLos2sOnKIHm3uKe0eauEZbZQkohlZL7p6dYD7GFrDjv/4/vtSON4WcV3SwBvrZXEoQ 3Vloc9NjURY5Dc2JfCOUVZmhW6u4eRbJRQcwFeXTjpprE3vBufhPVjdwvOCn+b2VC3Fx X0DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=to:subject:message-id:date:from:references:in-reply-to:mime-version :dkim-signature; bh=XjJxDPJkycf7waYCdEl7YrMv/z7TzyfVH7HDSMZbQoU=; fh=ltSPVjUIbgOqBeJbviS/zc5PAMr94eYLYvvPQufejLc=; b=XaoJBHC+hHbivBA9bJzA5LEuxoDd2k+imSzTWNkCO8Qdzxow3FE7G+PKJQLg28WsM0 HPsO810CSgwZXCdRKxs2aeKgUwDXeAX+JVwJyyCOgma6A+hBTw0PgS8nz4TZqdhxHAyl x7asEGJkCsBv+402YANDZBkqX5NVOF0G6T5i7mdxYgfgZXeSUmQW8MPPh+JlzhlDQ2EU 3s6/ykH/EmSG2Vl9mIU8+EM8Z0LWTGIibV2ke3KgbTGIbOOcw235uPWFw7nvX7jDMI1D xxCINufdt01MzJSZvdFF2T+MaeMVcmyjwLo48X1eSeqp/aHcgNIsgBZSkqs9y4yPClFI Z4sg==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770187422; x=1770792222; darn=lists.postgresql.org; h=to:subject:message-id:date:from:references:in-reply-to:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=XjJxDPJkycf7waYCdEl7YrMv/z7TzyfVH7HDSMZbQoU=; b=QoNZusP1nuZNoOjnoO+H5Q2CLB1QeIsE0qqWNOy7SoIHYUiXYxXICDg9bndEBxguOB 3XF10DL3vifUgyV1vkt3/c7KTxV2SfyRsBV31UyiqYBkFE4++vS3EMPwtumpfjhUMNYa wnIczIS+vFDS5MoOGM4BTdTNR/zMPTqIDaJe3ceGsygF6B2zEvo1Yc2FxkS7Mdxyv0H4 ak1n3aIw70jcKGqHx5lAbgTuc6SofAl+KE/et3UeZD8qRRsN0mZzZ89GLzqviffZlgeR JHo6p/Skhyd/RjudNOLlo6xeaOZH07IOJBgfFQcdj912avsqA8YCg5f6dxXDL7zvKXNI MqmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770187422; x=1770792222; h=to:subject:message-id:date:from:references:in-reply-to:mime-version :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XjJxDPJkycf7waYCdEl7YrMv/z7TzyfVH7HDSMZbQoU=; b=Qpcr/v4TfFsV1t6pUbdN/qo8enuny7ogbAVtgTYs7t8DJBMM0zAtqLlXjTZzxdCNyU D1xLDzonEcsijWO3cuRA4rvAsDmz19fXCIT5HNBGsGaZIrD13/Jr4/8xR1UUz2Z0ZvJj AG3ZPZRYYP6GPhueJArvkVqjGloBDMhWMzELl6mlpVTKRG9s+jogajjJ6IlpogTOae6e WH+EpCpXTr0XGi+api+xlmIWMGooS57IxlImxIdU7JdF+dpc+o+DZvXXCa1KOvYkeIPO D1JlBpIo60v0R7DabjhPuUv9Dsc1IWJfoYSOAhNsfO976Ua7UslYfKltVnxii1VJ08ME JX9Q== X-Forwarded-Encrypted: i=1; AJvYcCUlOGqS9iPjOXnEhU7hFwUttp/F7TiO6m2LKmsgOeIAsLCOnQQFdHAv775zHz/BIrJZnm+tMqra6aL7@lists.postgresql.org X-Gm-Message-State: AOJu0YzdhQETxVAS6lw2DuR9RYA9x7xj01UkJTixBcxf/wEjfC3GVNhZ MRwOQ7CV0rCFYf5H6EAzoxHVSXKY8h78pPw2wD2t3X5ze3eDnERnlacb0W0f5fniVLSS9crG+/s HuMiJAxb1dkc0TVULCDnyaOtnDD8wv94CDuud X-Gm-Gg: AZuq6aLtP7H3xogd8x5ezTYis2Mgz/yRMVjcvR0USTGdWguKy4/AKbNjaAHTIUaTfFX G9vV62QXzLLRrRw79B0j3i64sbA/xrUo55miz3R5pT4ug2aToaITn8dXMJQWRDZie7xrfw7O4Pt quTG79Q/rgXuUk98X6RuAJfCxKCTrYraKxiRatwnUCgpqbsDOLc6/q1jG6yvkGjTUNCCR6g78F2 DhEC/V8OfiqiWzSEKSstetumPptqrvUUxI9OEcg0ErsGvE8PjQAbuJADwC+8qxNY3Q0EWgv X-Received: by 2002:a05:6820:623:b0:662:fce8:31bb with SMTP id 006d021491bc7-66a2069158bmr1016967eaf.18.1770187422082; Tue, 03 Feb 2026 22:43:42 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a05:6802:3615:b0:61e:2744:d741 with HTTP; Tue, 3 Feb 2026 22:43:40 -0800 (PST) In-Reply-To: <19392-d713ae74a25d81de@postgresql.org> References: <19392-d713ae74a25d81de@postgresql.org> From: "David G. Johnston" Date: Tue, 3 Feb 2026 23:43:40 -0700 X-Gm-Features: AZwV_QiY1c_c1rm_ctuBgwvRrJuGwTrpsNHY_dQqZ_H1km6PJ46_GXRr-L_VKB4 Message-ID: Subject: Re: BUG #19392: PG_UPGRADE is non-functional on Windows To: "jeff.laing@spatialnetworx.ai" , "pgsql-bugs@lists.postgresql.org" Content-Type: multipart/alternative; boundary="0000000000007aace20649f9e07c" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000007aace20649f9e07c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tuesday, February 3, 2026, PG Bug reporting form 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=E2=80=99ve 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=E2=80=99t s= upport it. > > This results in command-lines that look like: > > "C:/postgresql16/bin/pg_ctl" -w -l > "C:/postgresql18/data/pg_upgrade_output.d/20260204T130353.043/log/pg_ > upgrade_server.log" > -D "C:/postgresql16/data" -o "-p 5432 -b " start >> > "C:/postgresql18/data/pg_upgrade_output.d/20260204T130353.043/log/pg_ > upgrade_server_start.log" > 2>&1 > > connection to server at "localhost" (::1), port 5432 failed: fe_sendauth: > no > password supplied > could not connect to source postmaster started with the command: > "C:/postgresql16/bin/pg_ctl" -w -l > "C:/postgresql18/data/pg_upgrade_output.d/20260204T130353.043/log/pg_ > upgrade_server.log" > -D "C:/postgresql16/data" -o "-p 5432 -b " start > Failure, exiting > > Note the quoting around the -o, -p and -b arguments. > There should perhaps be TWO double-quotes after -o or it should not be > present. > There should not be a double-quote after -b Showing the log files generated by the startup attempts would be helpful. Your guess here regarding how the =E2=80=9C-o=E2=80=9D argument=E2=80=99s v= alue behaves is incorrect, the quotes are precisely where the documentation says they should be. They should result in something like: =E2=80=9C=E2=80=A6/postgr= es -p 5432 -b=E2=80=9D as a subprocess of the pg_ctl command which is valid. > The problem appears as far back as the 16 sources. > > It seems even more unlikely that if this were the underlying cause it would have gone undetected for two full releases. We will need a reproducing bug report with the commands issued and logs generated. David J. --0000000000007aace20649f9e07c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tuesday, February 3, 2026, PG Bug reporting form <noreply@postgresql.org> wrote:
The following bug has been logged on the website:

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

After struggling with it for a while, I=E2=80=99ve come to the conclusion t= hat
PG_UPGRADE is not functional on Windows.

Th= is is a very hard to accept premise and this bug report doesn=E2=80=99t sup= port it.
=C2=A0

This results in command-lines that look like:

=C2=A0 =C2=A0 =C2=A0 =C2=A0 "C:/postgresql16/bin/pg_ctl" -w -l "C:/postgresql18/data/pg_upgrade_output.d/20260204T130353.04= 3/log/pg_upgrade_server.log"
-D "C:/postgresql16/data" -o "-p 5432 -b " start >&g= t;
"C:/postgresql18/data/pg_upgrade_output.d/20260204T130353.04= 3/log/pg_upgrade_server_start.log"
2>&1

connection to server at "localhost" (::1), port 5432 failed: fe_s= endauth: no
password supplied
could not connect to source postmaster started with the command:
"C:/postgresql16/bin/pg_ctl" -w -l
"C:/postgresql18/data/pg_upgrade_output.d/20260204T130353.04= 3/log/pg_upgrade_server.log"
-D "C:/postgresql16/data" -o "-p 5432 -b " start
Failure, exiting

Note the quoting around the -o, -p and -b arguments.
There should perhaps be TWO double-quotes after -o or it should not be
present.
There should not be a double-quote after -b

Showing the log files generated by the startup attempts would be helpful.= =C2=A0 Your guess here regarding how the =E2=80=9C-o=E2=80=9D argument=E2= =80=99s value behaves is incorrect, the quotes are precisely where the docu= mentation says they should be.=C2=A0 They should result in something like: = =E2=80=9C=E2=80=A6/postgres -p 5432 -b=E2=80=9D as a subprocess of the pg_c= tl command which is valid.


The problem appears as far back as the 16 sources.


It seems even more unlikely that if this w= ere the underlying cause it would have gone undetected for two full release= s.

We will need a reproducing bug report with the = commands issued and logs generated.

David J.
=

--0000000000007aace20649f9e07c--