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.94.2) (envelope-from ) id 1u7gIz-003vyg-NV for pgsql-general@arkaria.postgresql.org; Wed, 23 Apr 2025 20:02:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1u7gIw-009k3y-UG for pgsql-general@arkaria.postgresql.org; Wed, 23 Apr 2025 20:02:47 +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.94.2) (envelope-from ) id 1u7gIw-009k3h-IH for pgsql-general@lists.postgresql.org; Wed, 23 Apr 2025 20:02:47 +0000 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u7gIt-001ehp-1L for pgsql-general@lists.postgresql.org; Wed, 23 Apr 2025 20:02:47 +0000 Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-54c0fa6d455so243674e87.1 for ; Wed, 23 Apr 2025 13:02:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1745438562; x=1746043362; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=AXyrwiYrr9Ry3rd1WQISrzgW6sV5hwnYZrlvzw/6pUQ=; b=bbH4RoEcfSmBIX9DMnz7ZQuE4+zEBz1VkJYKMcRHdoPR0j3NJMmm6mJAEslT+1MqvC 18ZSAIMSoIoIbz9T/icaiDXHyKwU5yNBJDvktX09CH2YSNiUq9Q1NgH9xjdJ2OWmwRJv Y4mga8ExVxxsTEMui4Zgm4BBB7BHyoYKQovMWm9cpo4LPfhOKN38ywc8DCAv84TUSwwJ mWrrZTi5y2RdX+AJk0feiUIvBlK/0LEusSTtKht28VmK8yt1nr/GFE0ah74lqs0vEk8L 0Qlx0RgSHYyYbY4PGbHthEejnwhrUaPReHo+4i7DyKFaZLvDvC5iJUAjTeUUdkpwTK6/ CgxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745438562; x=1746043362; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AXyrwiYrr9Ry3rd1WQISrzgW6sV5hwnYZrlvzw/6pUQ=; b=Hw0ZQ+VvncRT8Hm7eoKhpRgJzYhGxJUbELc8eE1NsE5tDqdf6nWSwP+A5dtFduGu/s 80Oz35+1B6CDRIiUwy1mTthWB2APVM0TEIfuX5R+8+5pAjoNHGqq+qmBfcgCeaWxWstg BSzN2q5wPVDHBR0xCktU2mAKzB/vqcQueC9IEym6HY1Oz3wSnrInPsQMJVpj2jiWV2br G4RfHMiUV73WDXKOjGI406eT6bfR1Y2T7lKF7A0tLvxdG0XtY3Y3TT/oR2P4NFI1sYso 4xadsnJuVx2XCFQpCQcrIZzPZcJpdgM0bo5t1zsSPJxBIQ/kpjvwubgRi7jgIVX8aOk4 Ts6g== X-Gm-Message-State: AOJu0YyP/+fC9fK0J7bpS8Js7CA+CrIMA+FLMLlm/NWztNkIJ9qCJHRM F6n9TRJoMSjuoKmu3XlKK4jhE5Agr8IxytI8djBZYdKIXB2IWQxRseUQVhwChaL1qIlJ4NBoS+h GrOBTW60Xp+U8VIMQHjSkxFwXXOkx3PyST64= X-Gm-Gg: ASbGncuWz0HEslaZVUiZdBW6k4USBIvZjMnAFiCRHpqH/Pasmwk5FJXV2RvLuQkzy5A IuDLw8hN4HvbQTGQmhrjTRscdtWYUHaCLJF+c8GDPeJGTXMMI9BZH0/V+dd3upxI0N3vwCU/FVS Cb2US4xfOt9UadY/emKSIk20VuiFVoH/4V X-Google-Smtp-Source: AGHT+IEho7RFZnH8Ui9wZAi4n4iNZZH9utGKQX7lRZFRKIGSpUWCxtbx5HvN3T874BtU695SP/DYqRbqLk7Or24PNSg= X-Received: by 2002:a05:651c:b10:b0:30b:bfca:bbe3 with SMTP id 38308e7fff4ca-3179e0f9590mr710731fa.6.1745438561701; Wed, 23 Apr 2025 13:02:41 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Pawel Veselov Date: Wed, 23 Apr 2025 22:02:25 +0200 X-Gm-Features: ATxdqUF9HeLtS85UGn13RCTCRK1vUL6dNl8feq5wj9bqsxj61npopy34n2nVc6I Message-ID: Subject: Re: Dump version issues To: Adrian Klaver Cc: pgsql-general@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Apr 23, 2025 at 9:13=E2=80=AFPM Adrian Klaver wrote: > On 4/23/25 11:46, Pawel Veselov wrote: > > Hello. > > > So, how come older software (according to versions) produces dump > > files with a greater version > > than the newer software can understand? Is this Ubuntu package > > maintainers messing things up? > > Do: > > man postgresql-common > > to see how this handled. > > I have found that it is best to be explicit using the --cluster option. Thank you, I would have never guessed. $ pg_dump -V -h x pg_dump (PostgreSQL) 17.4 (Ubuntu 17.4-1.pgdg22.04+2) $ pg_dump -V pg_dump (PostgreSQL) 12.20 (Ubuntu 12.20-0ubuntu0.20.04.1) (facepalm) I was using the latter checking what pg_dump version was actually being use= d. Wasn't aware of this pg_wrapper business. > Given a pg_dump, it would be nice if its "-V" output would say which > version of the dump it would produce Yeah, this wouldn't have helped a bit.