pg_restore and adding a column

Поиск
Список
Период
Сортировка
От Thomas T. Thai
Тема pg_restore and adding a column
Дата
Msg-id Pine.NEB.4.44.0303202244560.23878-100000@ns01.minnesota.com
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: "Shridhar Daithankar"
Дата:
Сообщение: Re: Extracting time from timestamp
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Multiple backend connections