Skip site navigation (1) Skip section navigation (2)

Schema Upgrade Howto

From: Thomas Guettler <hv(at)tbz-pariv(dot)de>
To: pgsql-general(at)postgresql(dot)org
Subject: Schema Upgrade Howto
Date: 2008-10-30 09:54:46
Message-ID: 49098466.6000405@tbz-pariv.de (view raw or flat)
Thread:
Lists: pgsql-general
Hi,

is there a schema upgrade howto? I could not find much with google.

There is a running DB and a development DB. The development DB
has some tables, columns and indexes added. What is the preferred way
to upgrade?

I see these solutions:
 - pg_dump production DB. Install schema only from dev DB, restore data
only from dump.
 - Use alter table.
 - Use a tool like apgdiff (never tried it).

I guess all ways will be possible. But what do you suggest?

  Thomas


-- 
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de


Responses

pgsql-general by date

Next:From: ThomasDate: 2008-10-30 10:42:47
Subject: Re: Can't restart Postgres
Previous:From: Thom BrownDate: 2008-10-30 08:24:55
Subject: Re: Can't restart Postgres

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group