From: Kevin Grittner <kgrittn@ymail.com>
To: ajayaksadvance@gmail.com <ajayaksadvance@gmail.com>
To: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #8400: DB size changed after restore
Date: Fri, 30 Aug 2013 11:33:40 -0700 (PDT)
Message-ID: <1377887620.80788.YahooMailNeo@web162905.mail.bf1.yahoo.com> (raw)
In-Reply-To: <E1VEEgU-0007nl-Gg@wrigleys.postgresql.org>
References: <E1VEEgU-0007nl-Gg@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
"ajayaksadvance@gmail.com" <ajayaksadvance@gmail.com> wrote:
> PostgreSQL version: 9.2.0
There have been many fixes for bugs and security vulnerabilities in
the 9.2 minor releases since 9.2.0.
http://www.postgresql.org/support/versioning/> I am not sure its a bug or not but need some information on this.
There's no real evidence of a bug, it would have been better to
post a question to: pgsql-general@postgresql.org
> I am doing upgrade from 8.4 to 9.2 hence DB dump and then
> restore.
Normally when upgrading with this technique you should use the
pg_dump executable from the target version to dump the old
database. The newer software understands previous storage formats,
but the older software doesn't know anything about versions that
were written later.
> On postgrse 8.4 , i have DB of size 32 GB.
> SELECT pg_size_pretty(pg_database_size('<DBNAME>'))
> As fulldbsize;
>
> I have done vacummdb before going for dump.
That will make space available for re-use, but generally won't
eliminate dead space or reduce file sizes.
> I have first done schema dump and then DB data and all is fine.
>
> But on restore its running successfully but i am getting only
> size 9213 MB.
>
> Dont know, what exactly happend?
Well, you could narrow the possibilities by restoring that dump to
an 8.4 database and see how big that is. Some major releases have
improved the storage formats for some data types, like numeric; but
you might just be dealing with dead space from deletes and updates.
--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: kgrittn@ymail.com, ajayaksadvance@gmail.com
Subject: Re: BUG #8400: DB size changed after restore
In-Reply-To: <1377887620.80788.YahooMailNeo@web162905.mail.bf1.yahoo.com>
References: <E1VEEgU-0007nl-Gg@wrigleys.postgresql.org> <1377887620.80788.YahooMailNeo@web162905.mail.bf1.yahoo.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