pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: pgdump slowness
Date: Thu, 12 Sep 2019 10:52:48 -0500
Message-ID: <306515fd-e7eb-77ea-d638-411d6ca7a4be@gmail.com> (raw)
In-Reply-To: <CAAj4MFGc3voQYd850tRH5QeT=3MZ3tmz4QS2Riaz12cHU5RVWg@mail.gmail.com>
References: <CAAj4MFGc3voQYd850tRH5QeT=3MZ3tmz4QS2Riaz12cHU5RVWg@mail.gmail.com>

On 9/12/19 10:35 AM, Dhandapani Shanmugam wrote:
> Hi Guys,
>
> We are having wired issue. pg_dump taking more time to backup 320 GB of 
> table,the table has bytea data type with TOAST table associated it. Please 
> let me know, if this is the expected behavior of pg_dump or do i need to 
> tune any of the parameters. I tried to run pg_dump with parallel -j option 
> , still no improvement and there is no lock on the table as well. any 
> inputs are welcome

It took 16 hours to dump a 3TB v8.4 database that's full of bytea fields, 
using the 9.6 pg_dump with 8 threads.  This was from one DC to another 
*across a 10GB WAN link*.

Note that I *disabled compression* because the bytea fields contained 
non-compressible images.  Thus, the dump size was 2.2x larger than the 
actual database.

With compression enabled, the dump took a *lot* longer (though I didn't 
record those numbers).

Ron
-- 
Angular momentum makes the world go 'round.

view thread (5+ messages)  latest in thread

Message-ID: <306515fd-e7eb-77ea-d638-411d6ca7a4be@gmail.com>
Permalink:  ../306515fd-e7eb-77ea-d638-411d6ca7a4be@gmail.com/
Also on:    postgresql.org/message-id/306515fd-e7eb-77ea-d638-411d6ca7a4be@gmail.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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: pgdump slowness
  In-Reply-To: <306515fd-e7eb-77ea-d638-411d6ca7a4be@gmail.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