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 1vnFox-004I4j-2a for pgsql-admin@arkaria.postgresql.org; Tue, 03 Feb 2026 12:47:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vnFow-004ohW-2i for pgsql-admin@arkaria.postgresql.org; Tue, 03 Feb 2026 12:47:54 +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.96) (envelope-from ) id 1vnFow-004ohO-1Y for pgsql-admin@lists.postgresql.org; Tue, 03 Feb 2026 12:47:54 +0000 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vnFou-00000000MFq-1NLR for pgsql-admin@lists.postgresql.org; Tue, 03 Feb 2026 12:47:53 +0000 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-4801c2fae63so42979055e9.2 for ; Tue, 03 Feb 2026 04:47:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1770122871; x=1770727671; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=NL/PQQIyXOrOXBvhuWdPgFqXrVrumNqKWHpXIM2ERZM=; b=QMk/oXGDB2uxQ3nzOYaRDVSa3cwL3ghuqoJSICrBTeowC2kXWOcD5DbO+6KucTIDoD wd7cOLHm3tbxCc181TRdelCHEc0q2qhRY3tTPZRkhW4WDVij81aMHLWG1PgqLYlUnYcM JBnfM8K/cYmxVM6ABlJmzYz/ldLIA/5jKwY3LxoiBI4FCwfnaQNOwep6SDjD/NsaPJ64 y2CB0zFcqEZOn/DK2HsICAB1Ccq403cYRuIAxd6PJFt3MyuXtWyOlMixcdUbm4V+iT1z ydPmDsLl176SjItS8RQKr/2zjkOhZJi1JORvjrooRxwN20p9E6Y3c/9WUdx8dmJ7+KAn KASQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770122871; x=1770727671; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=NL/PQQIyXOrOXBvhuWdPgFqXrVrumNqKWHpXIM2ERZM=; b=P4RoBzur4CA1FpyYPh9/ywC69xXZl2B1YT/3FNViMcRFgjXle2f+bfzuaS/p2Os2wc zo7L17wismzKDJtNx34BfAfHOPfqn6sD/5TYDKhaDAN9qp+ZHcQiPRT46C/erSeszToV IibhSRNT4tPmCJDr3NHffQiK/ZdnKKvIlAM14UbV7ULShaKDA38826zD8q9xRwTph0H1 3f3er4bUbnBoyLtBJ43y5431tgPcVBUfke/w+saYiBV1/pH0yDpAbTuPX0b3Pr1+6C9v +wqqLW5qquGafpGIkrbINrRefFHZwTN8NpalMmmR1H5VPYRzkFgvdlrLSUenJgB7C8UD QvgA== X-Forwarded-Encrypted: i=1; AJvYcCUwtNrVdOGT4Q5u6PP0fZI0MLPf7W9RJQ5Ch6sMCVGK9QwTTa6oUvz/UnMwC7PI7smp4MnaYTtX4cmPoA==@lists.postgresql.org X-Gm-Message-State: AOJu0YwPy1gaYG+Jmyl/ZHkB9QsqEbzZ7dU4GwgslLhaheZPAcuOg8Xs bb9Yn9UdSnzkKQs1uNMxI5E2YnvnIjlGQ3nnUny96fqDmz5yOVyZJzJNlcMnhFdJNe/rN1PSXmd boJRd8w4= X-Gm-Gg: AZuq6aIjmZkGY71cIbajJUapXVoKcRo0fFaii7D4e80vShXTiavbJzuyxe/1PHui/7w 6LdR1wO9QKCAvlEjPu5dmtm4AtGdYXxLdok4mtT+F+kXrPTCUUQZzkSsy+A4EQTbWUTwn9tekUC Fy4D8ipqSVuRMpicDaR6aouA+fo35GhAnGCF/6qftg/E04MUbsshJUGrVsq2mh1+ozlY+fcnbDQ wyKRd90psy6IqfYVjbDV3LgBFdfC64eJ7W+S4yJaxNp72TMNy+iaI0TtgF6GPZ9pSJVXltDz9Vg FIEUbTRY65qLVEwRJphL/XcvdvmJLlbvFm45pNu4QZgqlyZvQfb8xib1NMCidwS11hh6gsgmRyL gcVdep7qFou2UpcrvlXPlBxVoM3OD0H20yyeoJWZObfweV35NoYzE8Bq9c4bNZ6MxFDQCsw7Jn4 dKK/DeIq+S68ThWdWaXLCoXctWn0SuUwIBbOWoTquf X-Received: by 2002:a05:600d:12:b0:482:eec4:772 with SMTP id 5b1f17b1804b1-482eec4092bmr111739985e9.32.1770122870569; Tue, 03 Feb 2026 04:47:50 -0800 (PST) Received: from laurenz.albe-K4N0CV00F97414D ([88.116.133.170]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4830511cc93sm72160905e9.2.2026.02.03.04.47.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Feb 2026 04:47:50 -0800 (PST) Message-ID: <240b5c920d864da8157e65f8b7683c6a5e6d8aae.camel@cybertec.at> Subject: Re: Does pg_dump custom format only compress the table data? From: Laurenz Albe To: Holger Jakobs , pgsql-admin@lists.postgresql.org Date: Tue, 03 Feb 2026 13:47:49 +0100 In-Reply-To: <6bff91db-843e-4858-95dd-cc8bfb90c012@jakobs.com> References: <6bff91db-843e-4858-95dd-cc8bfb90c012@jakobs.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.58.2 (3.58.2-1.fc43) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, 2026-02-03 at 08:51 +0100, Holger Jakobs wrote: > Am 03.02.26 um 07:06 schrieb Laurenz Albe: > > On Mon, 2026-02-02 at 10:55 -0500, Ron Johnson wrote: > > > Out of curiosity, I opened that dump file in vim, and saw not only DD= L strings but cleartext table data. > > >=20 > > > Why isn't it compressed? > > Are your DDL statement large enough that you would expect that compress= ing > > them would offer any real advantage? >=20 > That wasn't the question. It was about why table DATA aren't compressed,= =20 > but in clear text. Ah, I see. By default, you wouldn't see any table data, because they get compressed. If a custom format dump is not compressed, the reason could be: - PostgreSQL was built without support for compression (--without-zlib) - pg_dump was called with --compress=3D0 Yours, Laurenz Albe