Re: [GENERAL] More newbie question: Restructuring a table

From: Peter Eisentraut <e99re41(at)DoCS(dot)UU(dot)SE>
To: Timothy Grant <tjg(at)avalongroup(dot)net>
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] More newbie question: Restructuring a table
Date: 2000-03-02 15:50:29
Message-ID: Pine.GSO.4.02A.10003021649460.27493-100000@Dront.DoCS.UU.SE
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 1 Mar 2000, Timothy Grant wrote:

> Is there a quick and dirty way that I am missing for creating a new
> database with a slightly different schema than the old db?

pg_dump lets you dump out the schema only. Try that, edit it to your taste
and read it back in with psql (into the new database).

--
Peter Eisentraut Sernanders väg 10:115
peter_e(at)gmx(dot)net 75262 Uppsala
http://yi.org/peter-e/ Sweden

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2000-03-02 16:07:36 Re: [GENERAL] Performance on WindowsNT
Previous Message Mark Jewiss 2000-03-02 15:23:44 Re: [GENERAL] Version 7.0 beta problem