pg_restore and adding a column - Mailing list pgsql-general

From Thomas T. Thai
Subject pg_restore and adding a column
Date
Msg-id Pine.NEB.4.44.0303202244560.23878-100000@ns01.minnesota.com
Whole thread Raw
List pgsql-general
If I dump a DB out by first dumping out the schema only, then the entire
db like:

  pg_dump --schema-only --file=mydb_schema.pgsql mydb
  pg_dump --format=c --file=mydb.dump mydb

Then I add a column to the schema. If I now load the data back:

  pg_restore --data-only -d mydb -f mydb.dump

pg_restore should handle that ok correct? In other words, it would only
restore the data to the appropriate column using column names and not just
the order of the columns.

--
Thomas T. Thai




pgsql-general by date:

Previous
From: "Shridhar Daithankar"
Date:
Subject: Re: Extracting time from timestamp
Next
From: Tom Lane
Date:
Subject: Re: Multiple backend connections