Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dopol-0006pa-4y for pgsql-admin@arkaria.postgresql.org; Mon, 04 Sep 2017 11:45:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dopok-0000uY-EX for pgsql-admin@arkaria.postgresql.org; Mon, 04 Sep 2017 11:45:26 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dopoj-0000uO-T8 for pgsql-admin@postgresql.org; Mon, 04 Sep 2017 11:45:26 +0000 Received: from mout.perfora.net ([74.208.4.196]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dopoX-00081b-Q3 for pgsql-admin@postgresql.org; Mon, 04 Sep 2017 11:45:24 +0000 Received: from oxuslxaltgw03.schlund.de ([10.72.76.59]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPSA (Nemesis) id 0LooEX-1dIE5j3YwV-00goPn; Mon, 04 Sep 2017 13:45:04 +0200 Date: Mon, 4 Sep 2017 07:45:01 -0400 (EDT) From: Michael Vitale Reply-To: Michael Vitale To: "Jean R. Franco" , pgsql-admin@postgresql.org Message-ID: <1758120710.400302.1504525501413@email.1and1.com> In-Reply-To: <3e75543bdc093c158f050b3dfc0afe8e@maila.biz> References: <3e75543bdc093c158f050b3dfc0afe8e@maila.biz> Subject: Re: pgdump and restore results in different sizes DB MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.3-Rev30 X-Originating-Client: open-xchange-appsuite X-Provags-ID: V03:K0:Gt0GCaH9qnY5U/gVOrHVT7Ltl+1BlD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Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org

nice benefit of logical dump and restore: bye bye bloat

=
On September 4, 2017 at 7:35 AM "Jean R. Fran= co" <jfranco@maila.biz> wrote:


Hello Everyone,

I'm m= oving a postgresql server from one server to another, both running versions= 9.4.10
It's a single large database and I'm using pgdump to exp= ort and restoring on the new server.

The thing is, on the old server= the database size is 81GB, but when I restore on the new server, it decrea= ses to 60GB

List of databases
Name | Owner | Encoding | Collate= | Ctype | Access privileges | Size | Tablespace | Description
---------= ---+----------+----------+---------+-------+-------------------+-------+---= ---------+-------------
ecidade | postgres | LATIN1 | C | C | | 60 GB |= pg_default |

I'm watching the whole process of restoring it and= have no errors.
What could I been doing wrong?

Thanks,

=20