pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Re: Migration from 7.1.3. to 7.4.7.
4+ messages / 3 participants
[nested] [flat]

* Re: Migration from 7.1.3. to 7.4.7.
@ 2005-03-21 15:53  Scott Marlowe <smarlowe@g2switchworks.com>
  0 siblings, 3 replies; 4+ messages in thread

From: Scott Marlowe @ 2005-03-21 15:53 UTC (permalink / raw)
  To: "Dr. Roger" Wießner <wiessner@confluenta.de>; +Cc: pgsql-admin

On Wed, 2005-03-16 at 06:07, Dr. Roger Wießner wrote:
> Can anyone tell me how to successfully migrate from 7.1.3. to 7.4.7.? I get 
> lots of errors...

Try to have both installed at once (separate dirs, or separate machines)
and dump the 7.1.3 db with the 7.4.7 pg_dump.  You might want to do a
file system backup and an upgrade of 7.1.3 to the last version of 7.1.3.

On rare occasions, an intermediate upgrade to something in between may
help, but I've not used 7.1 in a VERY long time.



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Migration from 7.1.3. to 7.4.7.
@ 2005-03-21 16:54  Bryan Encina <bryan.encina@valleypres.org>
  parent: Scott Marlowe <smarlowe@g2switchworks.com>
  2 siblings, 0 replies; 4+ messages in thread

From: Bryan Encina @ 2005-03-21 16:54 UTC (permalink / raw)
  To: 'Dr. Roger Wießner' <wiessner@confluenta.de>; +Cc: pgsql-admin

> On Wed, 2005-03-16 at 06:07, Dr. Roger Wießner wrote:
> > Can anyone tell me how to successfully migrate from 7.1.3. 
> to 7.4.7.? I get 
> > lots of errors...
> 
> Try to have both installed at once (separate dirs, or 
> separate machines)
> and dump the 7.1.3 db with the 7.4.7 pg_dump.  You might want to do a
> file system backup and an upgrade of 7.1.3 to the last 
> version of 7.1.3.
> 
> On rare occasions, an intermediate upgrade to something in between may
> help, but I've not used 7.1 in a VERY long time.
> 

If for some reason you can't dump with the 7.4.7 pg_dump one of the problems you might be having is with literal carriage returns within your data.  I was able to use sed to help with getting it into a proper format.

-Bryan




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Migration from 7.1.3. to 7.4.7.
@ 2005-03-21 17:00  Scott Marlowe <smarlowe@g2switchworks.com>
  parent: Scott Marlowe <smarlowe@g2switchworks.com>
  2 siblings, 0 replies; 4+ messages in thread

From: Scott Marlowe @ 2005-03-21 17:00 UTC (permalink / raw)
  To: "Dr. Roger" Wießner <wiessner@confluenta.de>; +Cc: pgsql-admin

On Mon, 2005-03-21 at 09:53, Scott Marlowe wrote:
> On Wed, 2005-03-16 at 06:07, Dr. Roger Wießner wrote:
> > Can anyone tell me how to successfully migrate from 7.1.3. to 7.4.7.? I get 
> > lots of errors...
> 
> Try to have both installed at once (separate dirs, or separate machines)
> and dump the 7.1.3 db with the 7.4.7 pg_dump.  You might want to do a
> file system backup and an upgrade of 7.1.3 to the last version of 7.1.3.


In my previous message, I meant the latest version of 7.1, which is ,
now that I look it up, 7.1.3...  sigh, never mind that point there.



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Migration from 7.1.3. to 7.4.7.
@ 2005-03-21 19:56  Chris Browne <cbbrowne@acm.org>
  parent: Scott Marlowe <smarlowe@g2switchworks.com>
  2 siblings, 0 replies; 4+ messages in thread

From: Chris Browne @ 2005-03-21 19:56 UTC (permalink / raw)
  To: pgsql-admin

smarlowe@g2switchworks.com (Scott Marlowe) writes:
> On Wed, 2005-03-16 at 06:07, Dr. Roger Wießner wrote:
>> Can anyone tell me how to successfully migrate from 7.1.3. to 7.4.7.? I get 
>> lots of errors...
>
> Try to have both installed at once (separate dirs, or separate machines)
> and dump the 7.1.3 db with the 7.4.7 pg_dump.  You might want to do a
> file system backup and an upgrade of 7.1.3 to the last version of 7.1.3.
>
> On rare occasions, an intermediate upgrade to something in between may
> help, but I've not used 7.1 in a VERY long time.

7.1 is _mighty_ old, which gives a pretty considerable chance of there
being data type changes that may break.

I seem to recall doing an upgrade of some databases to 7.2 and
discovering that the date type being used in the "ancient" version
(which might well have been 6.5 or 7.0, even older than 7.1!) not
existing in more modern versions.

We wound up splitting the conversion into two pieces:

 - A schema conversion, where the types of fields were updated to
   those available in more modern versions.  This is where most of
   the fiddling took place.

 - A data copy, where (if memory serves) we dumped the data as a set of
   INSERT statements rather than via COPY 'dumps'.

   Careful addition of BEGIN/COMMIT allowed the load to be acceptably
   fast, and the use of INSERT avoided differences between COPY
   formats...

I'd do some "dry runs" (where you don't expect the results to
necessarily be useful) to see what problems fall out.
-- 
let name="cbbrowne" and tld="cbbrowne.com" in String.concat "@" [name;tld];;
http://www.ntlug.org/~cbbrowne/linuxxian.html
A VAX is virtually a computer, but not quite.



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2005-03-21 19:56 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-03-21 15:53 Re: Migration from 7.1.3. to 7.4.7. Scott Marlowe <smarlowe@g2switchworks.com>
2005-03-21 16:54 ` Bryan Encina <bryan.encina@valleypres.org>
2005-03-21 17:00 ` Scott Marlowe <smarlowe@g2switchworks.com>
2005-03-21 19:56 ` Chris Browne <cbbrowne@acm.org>

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