pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Mead <scottm@openscg.com>
To: pgsql-admin@postgresql.org
Subject: Re: pg_restore - Real dump file size
Date: Fri, 26 Feb 2016 10:29:54 -0500
Message-ID: <56D06F72.3000604@openscg.com> (raw)
In-Reply-To: <CAE_gQfWyUAAg23QPy=AX9D7i9B_fDuJKFCnN-WNG9Qe+j0WVDQ@mail.gmail.com>
References: <CAE_gQfXBUYTuTzqTAhJS08JcuKgmr0xoqeVq8QSg8Z2whnecTQ@mail.gmail.com>
	<CAE_gQfWyUAAg23QPy=AX9D7i9B_fDuJKFCnN-WNG9Qe+j0WVDQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>


On 02/26/2016 12:19 AM, drum.lucas@gmail.com wrote:
> sorry I was going to send it to the general list.. but I've sent to
> admin by mistake
>
>
> I've sent to general list now
>
>
> On 26 February 2016 at 17:25, drum.lucas@gmail.com
> <mailto:drum.lucas@gmail.com> <drum.lucas@gmail.com
> <mailto:drum.lucas@gmail.com>> wrote:
>
>     Hi all,
>
>
>     I'm doing the pg_restore now in a 1.5TB file:
>
>     *# ls -la*
>
>     postgres postgres 1575324616939 Feb 20 13:55 devdb_0.sql
>
>     But, the restore has gone over 1.6 TB
>
>     *# \l+*
>
>     1639 GB
>
>
>     How is that even possible?
>

The dump itself doesn't contain index data.  It'll contain a line that
says 'CREATE INDEX .....'
   The index is an on-disk entity that requires disk space, it's very
common for a dump file and a restored database to very significantly in
size.

>
>     *pg_restore command:*
>
>     /usr/pgsql-9.2/bin/pg_restore -d dbname --exit-on-error --jobs=4
>     --verbose devdb_0.sql
>
>     Cheers
>
>

-- 
Scott Mead
OpenSCG <http://www.openscg.com;
http://www.openscg.com
PostgreSQL, Java & Linux Experts

view thread (4+ messages)  latest in thread

Message-ID: <56D06F72.3000604@openscg.com>
Permalink:  ../56D06F72.3000604@openscg.com/
Also on:    postgresql.org/message-id/56D06F72.3000604@openscg.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: scottm@openscg.com
  Subject: Re: pg_restore - Real dump file size
  In-Reply-To: <56D06F72.3000604@openscg.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