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 1vx2iT-00C6to-3A for pgsql-admin@arkaria.postgresql.org; Mon, 02 Mar 2026 12:49:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vx2iS-000hxV-1B for pgsql-admin@arkaria.postgresql.org; Mon, 02 Mar 2026 12:49:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vx2iS-000hxN-00 for pgsql-admin@lists.postgresql.org; Mon, 02 Mar 2026 12:49:40 +0000 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vx2iQ-0000000014V-1CWg for pgsql-admin@lists.postgresql.org; Mon, 02 Mar 2026 12:49:40 +0000 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-38a01c80c34so41771451fa.0 for ; Mon, 02 Mar 2026 04:49:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1772455777; cv=none; d=google.com; s=arc-20240605; b=DB7+n8XTw8HFgAuU5qk2/d/4up30qc/ltQgVEcBzhgQLpuTNVYYMoHR4rCHNfkf/Eu GBLQOu3q7yznMioXi0ygByOoE/VR8U1mNhwe1qOUgSMGYac+kWTgUYkq8BtKYMH/GYtS Qyil65GOuPra78j2aagy/wypt5OLpDOSVzLOLsMJE61UGgqofIlu0ZJHi3uc/u9KEMPU KJMwAzz/wjhjcIzW7N7vN1fnDtNXy3mCK6z6rsoGdDNFq+pVSokB0/DK0TtAqxHRt+Ey rgZlFThCzmRCQ/iX2x6sWAlRkfOg6hFkrT4L2Ax28T/Bm7PPGHfTMefLPxP4v31jhX7B YaUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:dkim-signature; bh=9wBLo9iucCq7N/cvfxE+puAKCTrTusjVzvNJieuPvVQ=; fh=RjtgOQ0idWtzEHqk6ucHJ7HEjnKxaOkn4lxh3/uub6I=; b=NCHMMx6IZavkDx0dOdLNcgwlviP5tcMIbHMWDTiJ5Eq+dokzfD2i1fKX8di9uknfBY kJ2smWTCRf9FPW/mixvDQuTGGNlfIe/j9A7uLANZLDu2dRwjHeVaJGB+daQgzk9KYWX3 h0JboosEVCwfAgzU6dEru5JkExPah6vaLp0eSfTiVfvbqqbB+dT17q/aehMxD3OmyFlj oLzhvY3azryuHHNYJ74OmLH3v9tEd9RoE0JKFmS6AWvu5rVvf2i8wQx69bfhMDc+RqAK aKimcsetwr0w4T1mDQ+REmOlFEfc3peSAi8//4e3T0T7P+BGuIoDeBMeAA64ejGN+ngO 7agA==; 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=dataegret.com; s=google; t=1772455777; x=1773060577; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=9wBLo9iucCq7N/cvfxE+puAKCTrTusjVzvNJieuPvVQ=; b=hgUmuU3NmcV+itUBDLLyq1puhJc2dikD5a7XR0UsUF8fbjZTiiuGQS+Zqt0TCvawa/ P3613VK31J1Td7Ea+kBn/Msclit/gzpyPZ5AnyxZvbVqRUYzMzKdrPavvd07fNlRU+2P W0sDVEHPRS/xP5rroLDAA6kWQybSIElGzCigw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772455777; x=1773060577; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=9wBLo9iucCq7N/cvfxE+puAKCTrTusjVzvNJieuPvVQ=; b=dGBO/rR+lUiSWFvxUgSM8bMPY0H9VV06JEJx/9E06BHkZ8frjt99TvpF6TLaeppsqF CbSDAh9UtJsY+8uIieBU9alBeb+ClOhHCQF+9f7x0RZLqvLGjvrr2bHkTlus93tDxHvM vDbjG31zs5A/SDE2dzu/kYWYxGcRqedsCZtPIuep5QZ8JoLRMjPxpnNFt9f3CxK/S96r +CzfcH19PVZqR6pp+KiabEPcCvKWCxlVOqFIRvSsOvbpiSXuozJ0WjjazeZW9lmFbbxK ignMZ9hXQA46N2OudS3Tvdp6ApYTAo/M/gvpqV4+BczCHkLV7oKzuMvLRTWUAQObEiOP zFkA== X-Gm-Message-State: AOJu0YzZ9wojrLO4DbkPm8RRhgzzv8B3T4mcAU10DzUOddvF9km0HIkL MNkmRPUE7o77kyaN97m70XKDED1s/mlURqXa+xCi6BHJF6xSTd+4hlx1EiYcdTcYS5o3ph1tWO5 5vC3j11NlpvCNP3QF3tqvMxma7SXuWJVyKDOtNngQnIpBTR+hxQE2TSf4 X-Gm-Gg: ATEYQzxqRy7ee1IBin8RIhce3+EqVa8aLZ581lE0dkbKB6K9X3Rc1jSlgi2SteYdOxE YGt+1hdJLLEoFBHSXpgbScGavEkRyv0vFvFxOy9T8n/cDgpFp7DdLYMkXkWQNCBcvAbzl02BGWw yawlumBwdUOozD4MF2wVQ1o7CJVGk/ASumMARoNj33yhfOwHcC8cYjVnIZK225FQ6kGL4g/shho Sq7VqsGtDq2z8pewzfxaEK26tsggZlLUvfayyhuXC5O5R/tfv7NVukIR3MJ+XKC8ECDCr+4IWH4 EGlVZ4l4lqBwVkh5TBLkWhac++/5ZBAoPd+ZhzmjTHcXI1u1ZDB7+CT4p2ZKiqnifiI0h5vtagU 0+BUa+khwfFTladHr989Q4fxQfKUKnXaQvw== X-Received: by 2002:a2e:7c1a:0:b0:389:f15d:f8d5 with SMTP id 38308e7fff4ca-389ff3594a9mr56895451fa.27.1772455777370; Mon, 02 Mar 2026 04:49:37 -0800 (PST) MIME-Version: 1.0 References: <7e69fa35-05c7-4cd9-9eba-90fd78b7cd18@localities.work> In-Reply-To: <7e69fa35-05c7-4cd9-9eba-90fd78b7cd18@localities.work> Reply-To: ik@dataegret.com From: Ilya Kosmodemiansky Date: Mon, 2 Mar 2026 13:49:00 +0100 X-Gm-Features: AaiRm53R6XVYVI0aiGmhUMYwZuDZ-fUnc2fdkUf7GwPFeVMYUTSkEy4lzUVBV-Q Message-ID: Subject: Re: upgrade from 13 to 16 To: listy Cc: Pgsql-admin Content-Type: multipart/alternative; boundary="000000000000fd9585064c0a0440" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000fd9585064c0a0440 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi listy, On Mon, Mar 2, 2026 at 1:43=E2=80=AFPM listy 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 variabl= e. > Failure, exiting > > Or is a restoration from a backup the only way? > > many thanks, L. > --=20 Ilya Kosmodemiansky CEO, Founder Data Egret GmbH Your remote PostgreSQL DBA team T.: +49 6821 919 3297 ik@dataegret.com --000000000000fd9585064c0a0440 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi listy,

On Mon, Ma= r 2, 2026 at 1:43=E2=80=AFPM listy <listy@localities.work> wrote:
=20 =20 =20

Is upgrade from ver. 13 to 16 possible?
=
=C2=A0it is. You need to use the latest pg_upgrade binary (from versio= n 16 in this case)=C2=A0
=C2=A0

-> $ sudo -u postgres pg_upgrade -D /var/lib/pgsql/data/
=C2=A0
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, dat= a dirs and binaries.=C2=A0=C2=A0So you need to specify aloof=C2=A0-b, -B, -= d and -D
=C2=A0
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

Dat= a Egret GmbH
Your remote PostgreSQL DBA team
T.: +49 6821 919 3297ik@dataegret.com=


--000000000000fd9585064c0a0440--