From: | Michael Fuhr <mike(at)fuhr(dot)org> |
---|---|
To: | Keith Worthington <KeithW(at)NarrowPathInc(dot)com> |
Cc: | PostgreSQL Novice <pgsql-novice(at)postgresql(dot)org> |
Subject: | Re: Creating a clean database |
Date: | 2005-01-04 03:47:20 |
Message-ID: | 20050104034720.GA80886@winnie.fuhr.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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/
From | Date | Subject | |
---|---|---|---|
Next Message | Andreas Kretschmer | 2005-01-04 06:12:11 | Re: [despammed] postgresql for windows |
Previous Message | Keith Worthington | 2005-01-04 02:13:56 | Creating a clean database |