From: Alexey Bashtanov <bashtanov@imap.cc>
To: Luca Ferrari <fluca1978@gmail.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: after restore the size of the database is increased
Date: Wed, 24 Jul 2019 17:38:01 +0100
Message-ID: <97067566-24a0-0e68-8ecc-7067b8db57a5@imap.cc> (raw)
In-Reply-To: <CAKoxK+5oK1XR6a-P2nK6=MvT32B+QK_VUkz1WvM81ga1NA0HyQ@mail.gmail.com>
References: <CAKoxK+5oK1XR6a-P2nK6=MvT32B+QK_VUkz1WvM81ga1NA0HyQ@mail.gmail.com>
> Hi all,
> this should be trivial, but if I dump and restore the very same
> database the restored one is bigger than the original one.
> I did vacuumed the database foo, then dumped and restored into bar,
> and the latter, even when vacuumed, remains bigger then the original
> one.
> No other activity was running on the cluster.
>
I can also think of toast data rearranged differently after dump-restore,
accidentally in such a way that it's packed into pages more efficiently.
Not that the probability of such a behavior is very high though.
Best regards,
Alexey
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: bashtanov@imap.cc, fluca1978@gmail.com
Subject: Re: after restore the size of the database is increased
In-Reply-To: <97067566-24a0-0e68-8ecc-7067b8db57a5@imap.cc>
References: <CAKoxK+5oK1XR6a-P2nK6=MvT32B+QK_VUkz1WvM81ga1NA0HyQ@mail.gmail.com> <97067566-24a0-0e68-8ecc-7067b8db57a5@imap.cc>
* 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