From: | Neil Conway <neilc(at)samurai(dot)com> |
---|---|
To: | Josh Berkus <josh(at)agliodbs(dot)com> |
Cc: | Andrew Dunstan <andrew(at)dunslane(dot)net>, David Fetter <david(at)fetter(dot)org>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, PostgreSQL advocacy <pgsql-advocacy(at)postgresql(dot)org> |
Subject: | Re: [HACKERS] PGUpgrade WAS: Audio interview |
Date: | 2006-02-08 20:31:12 |
Message-ID: | 1139430672.9816.14.camel@localhost.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-advocacy pgsql-hackers |
On Wed, 2006-02-08 at 11:55 -0800, Josh Berkus wrote:
> One justification for in-place upgrades is to be faster than
> dump/reload. However, if we're assuming the possibility of new/modified
> header fields which could then cause page splits on pages which are 90%
> capacity, then this time savings would be on the order of no more than
> 50% of load time
Well, if you need to start shuffling heap tuples around, you also need
to update indexes, in addition to rewriting all the heap pages. This
would require work on the order of VACUUM FULL in the worst case, which
is pretty expensive.
However, we don't change the format of heap or index pages _that_ often.
An in-place upgrade script that worked when the heap/index page format
has not changed would still be valuable -- only the system catalog
format would need to be modified.
> The second reason for in-place upgrade is for large databases where the
> owner does not have enough disk space for two complete copies of the
> database. Again, this is not solvable; if we want in-place upgrade to
> be fault-tolerant, then we need the doubled disk space anyway
When the heap/index page format hasn't changed, we would only need to
backup the system catalogs, which would be far less expensive.
-Neil
From | Date | Subject | |
---|---|---|---|
Next Message | Rick Gigger | 2006-02-08 20:32:50 | Re: [HACKERS] PGUpgrade WAS: Audio interview |
Previous Message | Josh Berkus | 2006-02-08 19:55:27 | Re: [HACKERS] PGUpgrade WAS: Audio interview |
From | Date | Subject | |
---|---|---|---|
Next Message | Rick Gigger | 2006-02-08 20:32:50 | Re: [HACKERS] PGUpgrade WAS: Audio interview |
Previous Message | CG | 2006-02-08 19:59:33 | Cross schema Primary Key Indexes problem with datatype in the public schema |