From: Andreas Joseph Krogh <andreas@visena.com>
To: pgsql-general@postgresql.org
Subject: Re: database size changed after restoring using pg_restore
Date: Thu, 9 Nov 2017 00:23:20 +0100 (CET)
Message-ID: <VisenaEmail.1.89a14f3968f828e0.15f9df19f73@tc7-visena> (raw)
In-Reply-To: <ae182f2365a843f4981146e5df960098@ITUPW-EXMBOX3B.UniNet.unisa.edu.au>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>
På onsdag 08. november 2017 kl. 23:59:40, skrev Dylan Luong <
Dylan.Luong@unisa.edu.au <mailto:Dylan.Luong@unisa.edu.au>>:
Hi
I am upgrading some databases from a PostgreSQL 9.2 server to a new
PostgreSQL 9.6 server.
I used pg_dump and pg_restore for the upgrade.
This is the command I used to dump the database. I ran the command from the
9.6 server.
pg_dump -h 9.2server -j 16 --format=directory -f
/pg_backup/backup/dump/mydb-20171108.dmp -U postgres -W mydb
This is the command I used to restore the database on the 9.6server.
pg_restore -j 16 -C -d postgres /pg_backup/backup/dump/mydb-20171108.dmp
Everything appears ok, the dump and restore completed without and errors.
But when I listed the size of the database (postgres=# \l+) between the 9.2
and the upgraded 9.6, they were different.
on 9.2 it was 3776 MB
on 9.6 it was 1570 MB
I also did a few more databases using the same steps and they all appeared to
be smaller. Is that normal?
Yep.
-- Andreas Joseph Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963
andreas@visena.com <mailto:andreas@visena.com>
www.visena.com <https://www.visena.com;
<https://www.visena.com;
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: andreas@visena.com
Subject: Re: database size changed after restoring using pg_restore
In-Reply-To: <VisenaEmail.1.89a14f3968f828e0.15f9df19f73@tc7-visena>
References: <ae182f2365a843f4981146e5df960098@ITUPW-EXMBOX3B.UniNet.unisa.edu.au> <VisenaEmail.1.89a14f3968f828e0.15f9df19f73@tc7-visena>
* 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