Re: Moving an existing database from an old version?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: howard(at)yankeescientific(dot)com
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Moving an existing database from an old version?
Date: 2007-01-13 03:16:46
Message-ID: 17838.1168658206@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Howard Eglowstein <howard(at)yankeescientific(dot)com> writes:
> What I want to do is simply transplant the existing application onto the
> new database. I'd be happy to simply copy the files over and hack the
> .conf files appropriately, or if it's better, can I use PG_DUMP to
> somehoe backup the old data and restore it to the new installation?

pg_dump (or better pg_dumpall) is the way to go. You can't just copy
the files unless it's exactly the same major version of Postgres, which
it sounds like it isn't. Skim through the manual's discussion of
backup and restore if you're not sure how to use pg_dump.

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Aarni Ruuhimäki 2007-01-13 10:38:28 Re: Moving an existing database from an old version?
Previous Message Chad Wagner 2007-01-13 00:09:34 Re: Moving an existing database from an old version?