pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: pg_dump with compressible and non-compressible tables
Date: Sat, 5 May 2018 10:13:35 -0700
Message-ID: <b969307a-3df4-349b-0746-e833ae55efaf@aklaver.com> (raw)
In-Reply-To: <235eb14a-c215-9a57-9e4d-adefef8fc0c1@gmail.com>
References: <235eb14a-c215-9a57-9e4d-adefef8fc0c1@gmail.com>

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




view thread (4+ messages)  latest in thread

Message-ID: <b969307a-3df4-349b-0746-e833ae55efaf@aklaver.com>
Permalink:  ../b969307a-3df4-349b-0746-e833ae55efaf@aklaver.com/
Also on:    postgresql.org/message-id/b969307a-3df4-349b-0746-e833ae55efaf@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, ronljohnsonjr@gmail.com
  Subject: Re: pg_dump with compressible and non-compressible tables
  In-Reply-To: <b969307a-3df4-349b-0746-e833ae55efaf@aklaver.com>
  References: <235eb14a-c215-9a57-9e4d-adefef8fc0c1@gmail.com> <b969307a-3df4-349b-0746-e833ae55efaf@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox