pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Madelon Brennan <brennanm@georgetown.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: Copying data
Date: Mon, 11 Feb 2002 07:49:38 -0600
Message-ID: <20020211134938.GC3472@wolff.to> (raw)
In-Reply-To: <3C67C3EE.4E4856D6@georgetown.edu>
References: <3C67C3EE.4E4856D6@georgetown.edu>

On Mon, Feb 11, 2002 at 01:15:26PM +0000,
  Madelon Brennan <brennanm@georgetown.edu> wrote:
> What is the syntax for copying data from one database to another. I
> would like to take the data from my most current database and copy all
> of the data to my test environment.
> Thanks.

One way to do this is with pg_dump. Something like:
pg_dump database_name > dumpfile
psql test_name < dumpfile



view thread (2+ messages)

Message-ID: <20020211134938.GC3472@wolff.to>
Permalink:  ../20020211134938.GC3472@wolff.to/
Also on:    postgresql.org/message-id/20020211134938.GC3472@wolff.to

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: bruno@wolff.to, brennanm@georgetown.edu
  Subject: Re: Copying data
  In-Reply-To: <20020211134938.GC3472@wolff.to>
  References: <3C67C3EE.4E4856D6@georgetown.edu> <20020211134938.GC3472@wolff.to>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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