Re: Dumping from version 7.3.4 to 7.4.1

From: Godshall Michael <Michael_Godshall(at)gmachs(dot)com>
To: "'paulorz(at)grieg(dot)com(dot)br'" <paulorz(at)grieg(dot)com(dot)br>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Dumping from version 7.3.4 to 7.4.1
Date: 2004-02-12 22:54:38
Message-ID: A596FA3368757645AF862C701495CA0002A5E683@hor1mspmx01.gmachs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

I would guess that you need to do the pg_dump on the old machine, tranfser
the file to the destination machine, open a psql window on the destination
machine and then run the command to restore the database on that destination
machine.

The command listed below might work if you were going from 7.4.x to 7.4.x

-----Original Message-----
From: Paulo Rogerio Zimolo [mailto:paulorz(at)grieg(dot)com(dot)br]
Sent: Wednesday, February 11, 2004 6:28 AM
To: pgsql-admin(at)postgresql(dot)org
Subject: Dumping from version 7.3.4 to 7.4.1

I'm trying to do pg_dump an old version (7.3.4) to a new one (7.4.1) with
the following command:

pg_dump -U username -h server -i -o database | psql -U username -h
newserver newdatabase

As a result I got:

pg_dump: server version:PostgreSQL 7.3.4 on i586-pc-linux-gnu, compiled
by GCC 2.95.3;
pg_dump version:7.2
pg_dump: proceeding despite version mismatch

pg_dump: query to obtain list of data types failed
error: attribute "typprtlen" not found"

What is this attribute?
Am I doing something wrong?
Is there any better way to dump the database to another version?

Any help will be welcome

Many thanks
Paulo Zimolo

Attachment Content-Type Size
image/jpeg 2.9 KB

Browse pgsql-admin by date

  From Date Subject
Next Message Steve Crawford 2004-02-12 22:57:59 Re: hanging for 30sec when checkpointing
Previous Message Stephan Szabo 2004-02-12 22:42:42 Re: Dumping from version 7.3.4 to 7.4.1