Re: migration between databases and versions

From: "A(dot)Bhuvaneswaran" <bhuvan(at)symonds(dot)net>
To: mohan(at)physics(dot)gmu(dot)edu
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: migration between databases and versions
Date: 2003-12-18 09:40:19
Message-ID: 1071740418.1545.24.camel@Bhuvan.bksys.co.in
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> I would like to upgrade it to the newest version of postgres.
> 1) Is there a version for redhat 7.3.

Yes. You can run postgresql 7.2.x, 7.3.x & 7.4 on redhat 7.3.

> 2) How stable is postgres 7.4 ?

7.4 is stable. If i am in your position, i would rather wait for 7.4.3
or 7.4.4 for that matter.

> Eg: Old database with data
> has a Table named 'person' with fields A,B
> New Database to be put under prodcution
> also has an Table named 'person' with field A, B,C

If you are *very* sure that,

1) Columns are added, but not deleted
2) Tables are added, but not deleted
3) Tables are not renamed

then, you can follow the below steps to address your need:

1) IMPORTANT: Dump production database (schema & data). It is for safety
reason.
2) Dump production database (data only, using -a & -D option). Refer the
man page for the significance of -a & -D option.
3) Dump development database (schema only)
4) Restore development database (schema only)
5) Restore the dump which is taken in step 2 (data only)

Hope it addresses your need.

regards,
bhuvaneswaran

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message teknokrat 2003-12-18 12:21:35 how do i get differences between rows
Previous Message Iain 2003-12-18 01:30:23 Re: migration between databases and versions