Received: from wolff.to (wolff.to [66.92.219.49]) by postgresql.org (8.11.3/8.11.4) with SMTP id g1BDmHE38217 for ; Mon, 11 Feb 2002 08:48:17 -0500 (EST) (envelope-from bruno@wolff.to) Received: (qmail 3653 invoked by uid 500); 11 Feb 2002 13:49:38 -0000 Date: Mon, 11 Feb 2002 07:49:38 -0600 From: Bruno Wolff III To: Madelon Brennan Cc: pgsql-admin@postgresql.org Subject: Re: Copying data Message-ID: <20020211134938.GC3472@wolff.to> Mail-Followup-To: Madelon Brennan , pgsql-admin@postgresql.org References: <3C67C3EE.4E4856D6@georgetown.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3C67C3EE.4E4856D6@georgetown.edu> User-Agent: Mutt/1.3.25i X-Archive-Number: 200202/106 X-Sequence-Number: 3265 On Mon, Feb 11, 2002 at 01:15:26PM +0000, Madelon Brennan 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