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 1wPiDe-000yDQ-0W for pgsql-general@arkaria.postgresql.org; Wed, 20 May 2026 14:48:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wPiDa-007zNv-2r for pgsql-general@arkaria.postgresql.org; Wed, 20 May 2026 14:48:19 +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 1wPiDZ-007zNl-2v for pgsql-general@lists.postgresql.org; Wed, 20 May 2026 14:48:19 +0000 Received: from fout-b3-smtp.messagingengine.com ([202.12.124.146]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wPiDX-00000000Z96-1pN0 for pgsql-general@lists.postgresql.org; Wed, 20 May 2026 14:48:18 +0000 Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfout.stl.internal (Postfix) with ESMTP id 4069F1D000A9; Wed, 20 May 2026 10:48:12 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-03.internal (MEProxy); Wed, 20 May 2026 10:48:12 -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=fm2; t=1779288492; x=1779374892; bh=AW1V8ywLneozv3TAbGkXHIAW7OiKrbv+6xTCShWe/co=; b= FRo9RFkNTE/VNMG4JMdLxoeGV+279a6OdGtbl/C4ZKzw6PKAtbP2b1DNsxHJIUbe 9RgSHn10BFNoQ6LPFYDAWysyU4vlWs6w0eTmMjhgXOdvUkaji2hx7GYMdF2OOAyn /7BnQnxDA0vQ7SZ53ECGGKLN3cdnYWzboqLsi6q0pGaQqJ1QTubd7kP4qCY3WaZm hGlqEdeGis0KcXyayqbe0+tyJTciHSyDnIRFZbWf9WMr1MPxD+2ymGT2IPgCvFBx 05DcVa8s1q5wVrd3P9mNMwRhcaq5ErkN2HckveLxni34QdumUjR3o9J5Pf/c3qp2 ZVk0TnMryWHsvwpUFusNIQ== 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=fm3; t=1779288492; x=1779374892; bh=A W1V8ywLneozv3TAbGkXHIAW7OiKrbv+6xTCShWe/co=; b=Si0MbJBh+O+y3EI6k NkwgHYnlTHkbQkE+GSXTAUDlQQaakOLrIz+3QLOzc2hQ0OP+rC/PU3cKRV+f24Ho HRlHYDWSAVqtv+di9Ze18gGx73v++SbJ1EjQ3csAIqYXXZ7ji7UhhDJcXdZBakBF FWH+Q2AkPv4B/nE0Y3aCcG8FshbN102tEIxQle12iQc1JnWPobKbzFK8WLsGKu27 DKlu5N8NcGcBJr9Os2iX1Kldgaj99vSeYCkWWx85K8xsOTUUB6GuUpwxOKRMKCSB xmI/fcJk0HNHgFP9+tRbtY4w7TDsQ/EANXIqWJ3PTHxNHwS9p+Q7zDiG5nfx7Xjc A63Jw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgddugeegleduucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepkfffgggfuffvfhfhjggtgfesthekredttddvjeenucfhrhhomheptegurhhirghn ucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmqe enucggtffrrghtthgvrhhnpeffleegieefgfevudehtdfhkeeutdffjeevgeffgeejvedt hefgudeiteefheejheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmpdhnsggp rhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegvrhhtrghnrd hkuhgtuhhkohhglhhusehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqghgv nhgvrhgrlheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 20 May 2026 10:48:11 -0400 (EDT) Message-ID: <63cd128f-31e6-4920-a909-caf546da7f94@aklaver.com> Date: Wed, 20 May 2026 07:48:10 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Large backup size of pg_dump To: =?UTF-8?B?RXJ0YW4gS8O8w6fDvGtvZ2x1?= , 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 5/20/26 12:17 AM, Ertan Küçükoglu wrote: > Hello, > > I am using PostgreSQL 18.4 x64 on Windows Server 2022. There is a very > small single database in the cluster. > > There are hourly pg_dump backups scheduled and database backup size is > around 10GB. > > command line is like below > pg_dump.exe -p 5432 -U dbuser --exclude-table=app -F p -b -c -f "hourly.bak" > > When I check the cluster directory size it is 4.1 GB. > > Database has one BLOB saved in a single record and it is 16MB in size > and that is in the "app" table which is excluded from the backup file. > > I didn't understand about 2.5 times bigger backup sizes than the total > cluster size. I do not know what to check either. Is there a way for me > to make the hourly backup size smaller? Because you are using a plain text dump. The data is stored in an optimized binary form in the cluster files, when you ask for it to be plain text it 'expands' to be represented as text. Use something like this -Fc, which will compress the file produced. The handy part is that on restoring you can restore all or part of the file, with the caveat that for a partial restore it needs to make logical sense. In other words restoring a child table without it's parent will not work. > > Thanks & Regards, > Ertan -- Adrian Klaver adrian.klaver@aklaver.com