Re: pg_upgrade: can I use same binary for old & new?

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Pierre Fortin <pf(at)pfortin(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: pg_upgrade: can I use same binary for old & new?
Date: 2025-07-05 17:00:17
Message-ID: CAKFQuwZCjr5DFnHXu=qCihw-aMeTprO2tB5e1KwHDQHcigdi2g@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, Jul 5, 2025 at 9:52 AM Pierre Fortin <pf(at)pfortin(dot)com> wrote:

> If new pg_upgrade is the only binary, will both -b and -B default to it?
> Maybe at minimum I may need to specify:
> $ pg_upgrade -b /usr/bin -d data15 -D data17 -k
>
>
pgsql/pgsql-18/bin
> ./pg_ctl -D /var/pgsql/postgres-17 start
waiting for server to start....2025-07-05 16:58:56.559 UTC [293839] FATAL:
database files are incompatible with server
2025-07-05 16:58:56.559 UTC [293839] DETAIL: The data directory was
initialized by PostgreSQL version 17, which is not compatible with this
version 18beta1.
pg_ctl: control file appears to be corrupt

David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2025-07-05 17:04:55 Re: pg_upgrade: can I use same binary for old & new?
Previous Message Pierre Fortin 2025-07-05 16:52:07 pg_upgrade: can I use same binary for old & new?