From: Tom Lane <tgl@sss.pgh.pa.us>
To: Trevor Astrope <astrope@e-corp.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: Data Loss After Restore?
Date: Wed, 03 Apr 2002 11:38:50 -0500
Message-ID: <9841.1017851930@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.33.0204031049510.2959-100000@gord.hip.tabbweb.com>
References: <Pine.LNX.4.33.0204031049510.2959-100000@gord.hip.tabbweb.com>
Trevor Astrope <astrope@e-corp.net> writes:
> I restored a 7.1.3 database to another machine which seems to have went
> fine. However, the data on the disk is less than the original machine...
> There is only 6.5GB in pgsql/dta/base on my test machine and the same
> directory on the production machine was at 8.4GB at the time of the dump.
> This was after a vacuum.
> I didn't see any errors when restoring the database, so I'm confused why
> the restored database takes up so much less space... Is there any reason
> why this would happen?
Index bloat in the old database, perhaps?
> Is there any easy way to see where I may have lost data?
Count rows in the tables, maybe. Also, if you still have the old DB
online, comparing reltuples & relpages columns in pg_class for both
databases (after a VACUUM, to be sure they're up to date) would tell
the tale.
regards, tom lane
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, astrope@e-corp.net
Subject: Re: Data Loss After Restore?
In-Reply-To: <9841.1017851930@sss.pgh.pa.us>
References: <Pine.LNX.4.33.0204031049510.2959-100000@gord.hip.tabbweb.com> <9841.1017851930@sss.pgh.pa.us>
* 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