pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: A.Bhuvaneswaran <bhuvan@symonds.net>
To: mohan@physics.gmu.edu
Cc: pgsql-sql@postgresql.org
Subject: Re: migration between databases and versions
Date: Thu, 18 Dec 2003 15:10:19 +0530
Message-ID: <1071740418.1545.24.camel@Bhuvan.bksys.co.in> (raw)
In-Reply-To: <62763.138.88.163.115.1071687497.squirrel@physics.gmu.edu>
References: <62763.138.88.163.115.1071687497.squirrel@physics.gmu.edu>

> 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

Attachments:

  signature.asc (application/pgp-signature, 231B) download

view thread (3+ messages)

Message-ID: <1071740418.1545.24.camel@Bhuvan.bksys.co.in>
Permalink:  ../1071740418.1545.24.camel@Bhuvan.bksys.co.in/
Also on:    postgresql.org/message-id/1071740418.1545.24.camel@Bhuvan.bksys.co.in

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: bhuvan@symonds.net, mohan@physics.gmu.edu
  Subject: Re: migration between databases and versions
  In-Reply-To: <1071740418.1545.24.camel@Bhuvan.bksys.co.in>

* 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