Re: Moving from Java 1.5 to Java 1.6

From: David Fetter <david(at)fetter(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Moving from Java 1.5 to Java 1.6
Date: 2012-10-04 15:13:59
Message-ID: 20121004151359.GC31318@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Oct 04, 2012 at 12:22:55PM +0530, Swayam Prakash Vemuri wrote:
> Hi
>
> We have an application which uses postgresql 7.4.5.

You have a very large problem. The 7.4 series went out of support two
years ago at 7.4.30, which means that you have known data corruption
and crash bugs, and would even if you were to upgrade to 7.4.30
immediately.

You need to upgrade to a supported version and put systems in place to
do upgrades of every component in the system on a regular basis, as
they all have finite lifetimes.

> Now when we moved to Java 1.6, we are seeing lots of jdbc driver related
> compilation issues like shown at end of this email.

Those appear to be Java issues pretty strictly.

> Question is can we just only upgrade jdbc driver alone or its better to
> move completely to a new postgres version. ?
>
> Are there any docs that explain about how to migrate ?

Use 9.2.1's pg_dump to get your data out of the running 7.4 database
and then restore it to the 9.2.1 database.

For each database on the 7.4 machine, run the following on the 9.2
machine:

pg_dump -h name.of.7.4.machine.com -U postgres -Fc --file=mydb.dump mydb

To restore on the 9.2 machine:

pg_restore -C mydb.dump

Hope this helps.

Cheers,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2012-10-04 15:39:21 Re: Return dynamic columns of a temporary table
Previous Message Виктор Егоров 2012-10-04 13:50:09 Re: pg_upgrade default ports in the --help output