by-table dumps & restore

Поиск
Список
Период
Сортировка
От Vladimir Rusinov
Тема by-table dumps & restore
Дата
Msg-id f6fdfb550802220039j5a47b76cgc83bf93be7cf92f1@mail.gmail.com
обсуждение исходный текст
Список pgsql-admin
Hello!

We have a pretty large db (10 G and ~ 100 tables). Sometimes (when somebody deleted something usefull from table) it is necessary to restore only one or two tables from backup.
I've set up daily full database backup (pg_dump -U <user> <db>) and per-table backups (pg_dump -U <user> -t <table> <db>).

The question is about constrains & foreign keys.
It's clear that restoring only one table to yesturday's state may break some foreign keys. Do I need to do some extra things to make restore successfully?

Postgres 8.1.x

--
Vladimir Rusinov
Voronezh, Russia
UNIX Admin @ Murano Software

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

Предыдущее
От: Milen Evtimov
Дата:
Сообщение: server process (PID ) was terminated by signal 29
Следующее
От: "Mikko Partio"
Дата:
Сообщение: Stray autovacuum daemon