Re: Data Import

From: "Anthony E (dot) Greene" <agreene(at)pobox(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Data Import
Date: 2001-01-25 08:09:43
Message-ID: 20010125030943.C12844@cp5340
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 23 Jan 2001 16:07:17 keith wrote:
>Can anyone tell me where to find out information about going from 6.3 to
>6.5? I have used the "\copy name to name" command to save all of the data
>to a file. I now want to import this data in 6.5. Any suggestions?

Export old database:

pg_dump -d dabasename -D database.sql

This will output the SQL commands to recreate all your tables and data. Then
import it into the new database:

psql < database.sql

Tony
--
Anthony E. Greene <agreene(at)pobox(dot)com> <http://www.pobox.com/~agreene/>
PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D
Chat: AOL/Yahoo: TonyG05 ICQ: 91183266
Linux. The choice of a GNU Generation. <http://www.linux.org/>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dmitry Balakshin 2001-01-25 08:10:55 Solaris problem
Previous Message Esa Pikkarainen 2001-01-25 08:01:21 Re: If test in sql??