Re: restore multiple tables postgres

Поиск
Список
Период
Сортировка
От Rob Richardson
Тема Re: restore multiple tables postgres
Дата
Msg-id 04A6DB42D2BA534FAC77B90562A6A03D012F56DD@server.rad-con.local
обсуждение исходный текст
Ответ на Re: restore multiple tables postgres  (akp geek <akpgeek@gmail.com>)
Ответы Re: restore multiple tables postgres  (akp geek <akpgeek@gmail.com>)
Список pgsql-general
I often have to create test copies of a production database.   The database has several large tables that contain historical data that is not needed for our system to run, and just wastes time doing backups and restores.  I created two batch files, one for backing up and the other for restoring.  The backup file begins with a command to backup the scheme of the database, and then there is a series of commands to backup the tables I need, once command per table.  The restore file works the same way.  I think a similar idea would help you.  You could trim the batch files (or at least the restore batch file) to give you only the tables you need.
 
If you want, I'd be happy to E-mail you the batch files.
 
RobR

В списке pgsql-general по дате отправления:

Предыдущее
От: akp geek
Дата:
Сообщение: Re: restore multiple tables postgres
Следующее
От: Tom Lane
Дата:
Сообщение: Re: auto vacuum