Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fF0kq-00089F-3Y for pgsql-general@arkaria.postgresql.org; Sat, 05 May 2018 17:13:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fF0ko-0008Dw-Qv for pgsql-general@arkaria.postgresql.org; Sat, 05 May 2018 17:13:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fF0ko-0008Dl-Iq for pgsql-general@lists.postgresql.org; Sat, 05 May 2018 17:13:50 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fF0kf-0006fG-45 for pgsql-general@postgresql.org; Sat, 05 May 2018 17:13:50 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id A784820E8E; Sat, 5 May 2018 13:13:36 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sat, 05 May 2018 13:13:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=r3nGOOeml7IdprHqO2dP4+0tVyEf4 KlZMii0dj+Jd7k=; b=a6JdzeVDYrk9T3BQ6GubbfvXsWMZqLeR8Uy6/BM/FIidR RrHShXFl3zrlHx5g8Cagzmx8gvxKfGVjJpNAnWPYW5yNxl1p474Xnn15DZKD6Bb0 xYWsceKVWsG9CYNfcYDbecpbqIl1LiA6xUsICKCk1lLuPqC5jWDLsCBLw2w3h4Px S2KMN2cMoF6mTesRLR/QbXS3FBjUfQgxyyOYxXDZ64DDABn0L18FlG3pC2oXIxyH Vlwh1wAvh94bsvixeMcKZgjUK0gD4OO2Yf1sx9JeukuRsXolyrOQe4qIruNxakIQ WwHYFTVRFWws/PscUR9w7GSdErOrPxGirOsf6fanA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=r3nGOO eml7IdprHqO2dP4+0tVyEf4KlZMii0dj+Jd7k=; b=Fs+wAwdGsQtY7soGhyQozg 9RRClzwMYLvD5xeY8cG2tU6OtBK5su3/tziuZqO3F+DP2d9gr1ETtDmYKQZIOjx+ YlbU7bx/VeiBkss0iu+2AGEywIpJ9k9GdarK6DayYo+8MPTNWivT1Ycu0BVQIho+ L0+sWxsh1jCYPGGnlWLxHekJIu29Mc/MktMZbXrLnB8/tRQlDYy4Yyyb+Msc0coi HgsRHXNQRbTIom9PBvUonJ+TbxtJfNpbwYrJdz9DMuloeyXPtDDstPbMexD1NJSf PdF/qZDRU+uzeQX2YWCLDjDYSXVIw+DjRidC/77MH7d6Pr32t7/NCSKOdVeeGBXg == X-ME-Sender: Received: from [192.168.1.2] (unknown [71.212.135.74]) by mail.messagingengine.com (Postfix) with ESMTPA id E8370E50BB; Sat, 5 May 2018 13:13:35 -0400 (EDT) Subject: Re: pg_dump with compressible and non-compressible tables To: Ron , pgsql-general@postgresql.org References: <235eb14a-c215-9a57-9e4d-adefef8fc0c1@gmail.com> From: Adrian Klaver Message-ID: Date: Sat, 5 May 2018 10:13:35 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <235eb14a-c215-9a57-9e4d-adefef8fc0c1@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 05/05/2018 07:14 AM, Ron wrote: > Hi, > > v9.6 > > We've got big databases where some of the tables are highly > compressible, but some have many bytea fields containing PDF files. Can you see a demonstrable difference? > > When the data format is custom, directory or tar, how feasible would a > "--no-blob-compression" option be (where pg_dump just tells the zlib > library to just Store tables with bytea columns, while compressing all > other tables at the specified -Z level)? In pg_dump blob refers to large objects: https://www.postgresql.org/docs/10/static/app-pgdump.html " -b --blobs Include large objects in the dump. This is the default behavior except when --schema, --table, or --schema-only is specified. The -b switch is therefore only useful to add large objects to dumps where a specific schema or table has been requested. Note that blobs are considered data and therefore will be included when --data-only is used, but not when --schema-only is. " These are different critters then bytea. > > Thanks > -- Adrian Klaver adrian.klaver@aklaver.com