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 1ur2Z7-00HG1o-5F for pgsql-general@arkaria.postgresql.org; Tue, 26 Aug 2025 22:54:58 +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 1ur2Z6-00B7c1-Ik for pgsql-general@arkaria.postgresql.org; Tue, 26 Aug 2025 22:54:57 +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 1ur2Z5-00B7bp-If for pgsql-general@lists.postgresql.org; Tue, 26 Aug 2025 22:54:56 +0000 Received: from fout-a7-smtp.messagingengine.com ([103.168.172.150]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1ur2Z3-001uw3-1i for pgsql-general@lists.postgresql.org; Tue, 26 Aug 2025 22:54:55 +0000 Received: from phl-compute-09.internal (phl-compute-09.internal [10.202.2.49]) by mailfout.phl.internal (Postfix) with ESMTP id 2BCCDEC006F; Tue, 26 Aug 2025 18:54:53 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-09.internal (MEProxy); Tue, 26 Aug 2025 18:54:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= 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=fm3; t=1756248893; x=1756335293; bh=J1nIujCOYXHjvJRmqAFgyqr/ADMZg0TgBff2XamPGzc=; b= X2T1SNt/Ok+3pOAJgyQlvMw6m2EseOASpK9OYRIFrnnUAgdRGoVChCHyoNF3OodL IXYnEFKrzja58Gz016WrWcFhgbbdGlGZVlamichw1Q6UAC04eiMnrwzP6789x7L5 sfA4XEg49Ujm0tLss6uiSj4yluwY5cyY3ioZtkRUOzf+Y1R2LVgQvE7iGLF8ZlUA YcCj6K9m/mNQLVHL0xfTqlx39RrZ/X351VLLQ2goUJR/IeIHRuyfyexkdNVvWFKr wVAdde2guAsrH9ZqW06b47b5zsbW7vbx35muPw2Qiuk+YBQNjjm6TNzjeScCXs85 3Z4oTh96a976IUJM/oxdgQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=fm1; t=1756248893; x=1756335293; bh=J 1nIujCOYXHjvJRmqAFgyqr/ADMZg0TgBff2XamPGzc=; b=JZha9jODXQictpPVH abI1TMSUasqKosDL2rvn5mx+FVaLReDMv6Nff/0kdGPRxd2x+fOOdsdJLF/gmlDm ciRBgYEPpJYYC4ZV6zPCgPt6flmPFnvGSDm3p0E91muPKlI/kD7Pv702AkKyQ+x6 phI8l07RsVqthpyfhZAeVDmbEBNZtBq+8RxTKS/FTVbZCd40ItRVaWu7afd1JDIk q+WYPaZHH52Hs6cqMHfSIDb0KkESum/C9YetXIp1dnMMuRa47SS8N3j3I1nUJxk0 jTX3n0mlTiWMskRgeTfwvjNDMet9xsiqWK6YqmHZtQEgD9OsShXp72vMi2NqQQIN g3uwQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgddujeeihedvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertd dtvdejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgr vhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepiedvhfeiheehge euieeljeeitedtjeehudegfeelkedvleekhedtgfeiffefkedunecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrh esrghklhgrvhgvrhdrtghomhdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphho uhhtpdhrtghpthhtohepjhhimhhishesghhmgidrnhgvthdprhgtphhtthhopehpghhsqh hlqdhgvghnvghrrghlsehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 26 Aug 2025 18:54:52 -0400 (EDT) Message-ID: Date: Tue, 26 Aug 2025 15:54:52 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: In-order pg_dump (or in-order COPY TO) To: Dimitrios Apostolou , 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: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 8/26/25 12:43, Dimitrios Apostolou wrote: > Hello list, > > I am storing dumps of a database (pg_dump custom format) in a de- > duplicating backup server. Each dump is many terabytes in size, so > deduplication is very important. And de-duplication itself is based on > rolling checksums which is pretty flexible, it can compensate for blocks > moving by some offset. > > Unfortunately after I did pg_restore to a new server, I notice that the > dumps from the new server are not being de-duplicated, all blocks are > considered new. What are the pg_dump/pg_restore commands? What are the Postgres versions involved? Are they community versions of Postgres or something else? What is the depduplication program? > Thanks in advance, > Dimitris > > -- Adrian Klaver adrian.klaver@aklaver.com