Re: Creating a clean database - Mailing list pgsql-novice

From Michael Fuhr
Subject Re: Creating a clean database
Date
Msg-id 20050104034720.GA80886@winnie.fuhr.org
Whole thread Raw
In response to Creating a clean database  (Keith Worthington <KeithW@NarrowPathInc.com>)
Responses Re: Creating a clean database
List pgsql-novice
On Mon, Jan 03, 2005 at 09:13:56PM -0500, Keith Worthington wrote:

> I have finished a testing phase and I would like to create a production
> database.  My thought is to use pg_dump to create a backup of the data
> dictionary, create a new database using pgadminIII or psql and then use
> something (pg_restore or psql or ?) to rebuild all of the database
> objects.  I am hoping that a technique is available that will allow me
> to get all new oids and reset all sequences.  Suggestions will be
> appreciated.

Have you looked at the documentation for pg_dump, in particular
the --schema-only and --data-only options?  If those won't work
then please be more specific about what you're trying to do.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

pgsql-novice by date:

Previous
From: Keith Worthington
Date:
Subject: Creating a clean database
Next
From: Andreas Kretschmer
Date:
Subject: Re: [despammed] postgresql for windows