Re: upgrade from 13 to 16

From: Ilya Kosmodemiansky <ik(at)dataegret(dot)com>
To: listy <listy(at)localities(dot)work>
Cc: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: upgrade from 13 to 16
Date: 2026-03-02 12:49:00
Message-ID: CAG95seVY8rHSnksNig5-81ZX5PyQ3MAagVV9x4=JJy-Bu62iSg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi listy,

On Mon, Mar 2, 2026 at 1:43 PM listy <listy(at)localities(dot)work> wrote:

>
> Is upgrade from ver. 13 to 16 possible?
>
it is. You need to use the latest pg_upgrade binary (from version 16 in
this case)

>
> -> $ sudo -u postgres pg_upgrade -D /var/lib/pgsql/data/
>
>
You must identify the directory where the old cluster binaries reside.
>

It tells you exactly what to do. pg_upgrade requires both the old and new
clusters, data dirs and binaries. So you need to specify aloof -b, -B, -d
and -D

> Please use the -b command-line option or the PGBINOLD environment variable.
> Failure, exiting
>
> Or is a restoration from a backup the only way?
>
> many thanks, L.
>

--
Ilya Kosmodemiansky
CEO, Founder

Data Egret GmbH
Your remote PostgreSQL DBA team
T.: +49 6821 919 3297
ik(at)dataegret(dot)com

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message listy 2026-03-02 13:47:50 Re: upgrade from 13 to 16
Previous Message listy 2026-03-02 12:43:13 upgrade from 13 to 16