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 1u7gYn-00422f-PM for pgsql-general@arkaria.postgresql.org; Wed, 23 Apr 2025 20:19:10 +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 1u7gYl-009xg0-SY for pgsql-general@arkaria.postgresql.org; Wed, 23 Apr 2025 20:19:08 +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.94.2) (envelope-from ) id 1u7gYk-009xe8-J2 for pgsql-general@lists.postgresql.org; Wed, 23 Apr 2025 20:19:08 +0000 Received: from fhigh-b6-smtp.messagingengine.com ([202.12.124.157]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1u7gYi-001agk-2I for pgsql-general@lists.postgresql.org; Wed, 23 Apr 2025 20:19:06 +0000 Received: from phl-compute-02.internal (phl-compute-02.phl.internal [10.202.2.42]) by mailfhigh.stl.internal (Postfix) with ESMTP id CA2232540182; Wed, 23 Apr 2025 16:19:03 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Wed, 23 Apr 2025 16:19:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1745439543; x=1745525943; bh=F8wjnl4baRYFi90NsaVAlkyJ+SkMiJ0SH4qlfu0bmsU=; b= iYlHk35ClGxYKrPgKZKNVhbvdGEPyc4P6oYIiHRUbxoNdxkKDBrLtiHZA+4tbSba x+g6q54IRx7XoL4ndOAHVzRH7xO2ti8w7p/gpH83fsBZxhxnswAsShu+bbbRXOQV +P3ywZi+hFqSMJI1t7//NmvzgbgsyiG0kXzKm8pY4oH0O+nnRAlQ7GZbcalcKVxM zi/sD3qz3CbtZ1zTawwKjzpLuid5aEOHh7nINB2raAfo6uu2K8nmcBrx35ivSYG5 2Sd7nx6mvUvAt8ngcdKKTQm1PB+t42BJ+gr/Lh8D8fRo1ER0LbnlJDJP3MhZsfP+ kAXYPTnGsHXkTcprJqF4Tg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1745439543; x= 1745525943; bh=F8wjnl4baRYFi90NsaVAlkyJ+SkMiJ0SH4qlfu0bmsU=; b=P 3ZjorHOtTT0ZHlsF+s7y3y/l2labclja6gDkm5sRQ05CdqHS1lkhWyyV99B5DhxN 6slB+ntYpOW5j5wOaCUk8i6qFPQr2A+plDjfWSlLtpTVtTD/mEpdJZSbZ4TiqhZN m4OREQCuCkR33dLfQgftjP4qgO8+QagYX/EWZ2FR6s6TjmyUjApNFNZWP5yubmWL Kfq+s0lUqFWI3YKssJ0XIICeiDPCeoe2K/8d2XkiXlpamChRe1cZsnrg4MN1M6aW 4KoM38tUcr5r+A2kj6zgHByMJqd9K5aq2FHTARiaBJmWRIr3oIuDahDIAlCSwGC8 GfhlP6Ss8wOpShcSeE5xA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvgeejheegucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddt vdejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvh gvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepfeegfeeiuedtgffg teeggfehkeejheetieeliefgteeikeejvdeiveeigfehvedtnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhes rghklhgrvhgvrhdrtghomhdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouh htpdhrtghpthhtohepphgrfigvlhdrvhgvshgvlhhovhesghhmrghilhdrtghomhdprhgt phhtthhopehpghhsqhhlqdhgvghnvghrrghlsehlihhsthhsrdhpohhsthhgrhgvshhqlh drohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 23 Apr 2025 16:19:03 -0400 (EDT) Message-ID: Date: Wed, 23 Apr 2025 13:19:02 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Dump version issues To: Pawel Veselov Cc: pgsql-general@lists.postgresql.org References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 4/23/25 13:02, Pawel Veselov wrote: > On Wed, Apr 23, 2025 at 9:13 PM 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 used. > Wasn't aware of this pg_wrapper business. If you do something like: ls -al /usr/bin/pg_dump you will find pg_dump is a sym link to: /usr/share/postgresql-common/pg_wrapper which is a Perl script that does the selection. The same holds for the other Postgres commands in /usr/bin/. FYI, psql will always resolve to latest version installed, --cluster will have no affect on it. > >> 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. -- Adrian Klaver adrian.klaver@aklaver.com