Skip site navigation (1) Skip section navigation (2)

Re: [GENERAL] editing file after pg_dump

From: Kevin Heflin <kheflin(at)shreve(dot)net>
To: "Ross J(dot) Reedstrom" <reedstrm(at)rice(dot)edu>
Cc: "PGSQL-General (E-mail)" <pgsql-general(at)postgresql(dot)org>
Subject: Re: [GENERAL] editing file after pg_dump
Date: 1999-03-18 19:52:23
Message-ID: Pine.LNX.4.04.9903181351370.31546-100000@mercury.shreve.net (view raw or flat)
Thread:
Lists: pgsql-general
On Thu, 18 Mar 1999, Ross J. Reedstrom wrote:

> you might try dumping the schema and data separately:
> 
> pg_dump -a yourdb >yourdb.data
> pg_dump -s yourdb >yourdb.schema
> 
> then edit the schema without touching the data, then
> 
> psql newdb <yourdb.schema
> psql newdb <yourdb.data
> 

Thanks for the tip.. I'll try that.


Kevin



--------------------------------------------------------------------
Kevin Heflin          | ShreveNet, Inc.      | Ph:318.222.2638 x103
VP/Mac Tech           | 333 Texas St #619    | FAX:318.221.6612
kheflin(at)shreve(dot)net    | Shreveport, LA 71101 | http://www.shreve.net
--------------------------------------------------------------------


In response to

pgsql-general by date

Next:From: Ross J. ReedstromDate: 1999-03-18 19:56:32
Subject: Re: [GENERAL] editing file after pg_dump
Previous:From: Kevin HeflinDate: 1999-03-18 19:27:54
Subject: editing file after pg_dump

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group