pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedBackup 7.3 was 19GB, restored on 8.0.3 was only 4GB
2+ messages / 2 participants
[nested] [flat]
* Backup 7.3 was 19GB, restored on 8.0.3 was only 4GB
@ 2005-09-12 16:17 David Wall <d.wall@computer.org>
2005-09-12 19:57 ` Re: Backup 7.3 was 19GB, restored on 8.0.3 was only 4GB Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: David Wall @ 2005-09-12 16:17 UTC (permalink / raw)
To: pgsql-interfaces
I can't see anything wrong with my database, but I was wondering what it
might all mean.
Under my 7.3 database, before upgrading to 8.0, I did the following:
vacuumlo my_db
reindexdb -a
vacuum analyze;
pg_dump --blobs -Fc my_73_db | gzip > dbbackup.gz
The resulting dbbackup.gz file was 19GB.
Then I moved the dbbackup.gz file to another system that had 8.0.3
installed:
gunzip -c dbbackup.gz | pg_restore -v -O -d my_80_db
When I ran that same set of commands against the 8.0 database, the
backup from that system was only 4GB. I did note a large number of
large objects were removed in the vacuumlo command, yet I can't really
see any missing blobs, though I'm not sure how to absolutely check this.
Is there anything between the two version that would explain why one is
so much smaller than the other? Is there any reason why the vacuumlo
under 7.3 didn't remove large objects that were then removed under 8.0?
Thanks,
David
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Backup 7.3 was 19GB, restored on 8.0.3 was only 4GB
2005-09-12 16:17 Backup 7.3 was 19GB, restored on 8.0.3 was only 4GB David Wall <d.wall@computer.org>
@ 2005-09-12 19:57 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2005-09-12 19:57 UTC (permalink / raw)
To: David Wall <d.wall@computer.org>; +Cc: pgsql-interfaces
David Wall <d.wall@computer.org> writes:
> Is there any reason why the vacuumlo
> under 7.3 didn't remove large objects that were then removed under 8.0?
[ digs in CVS logs ... ] I think vacuumlo is actually entirely broken
in the 7.3 branch, because this 7.4 patch:
2002-12-09 20:57 momjian
* contrib/vacuumlo/vacuumlo.c: Following patch avoids removing oids
in the temporary table from the temporary table.
Kenji Sugita
wasn't ever back-patched. The former coding was assuming that temp
tables had real names of the form "pg_temp_NNN", which is no longer
true in 7.3, and the net result would be that nothing got deleted.
There were some schema-awareness bugs too, but that one would render
the whole thing a no-op.
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2005-09-12 19:57 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-09-12 16:17 Backup 7.3 was 19GB, restored on 8.0.3 was only 4GB David Wall <d.wall@computer.org>
2005-09-12 19:57 ` Tom Lane <tgl@sss.pgh.pa.us>
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