From: Vladimir Rusinov <vladimir@greenmice.info>
To: pgsql-admin@postgresql.org
Subject: by-table dumps & restore
Date: Fri, 22 Feb 2008 11:39:20 +0300
Message-ID: <f6fdfb550802220039j5a47b76cgc83bf93be7cf92f1@mail.gmail.com> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: vladimir@greenmice.info
Subject: Re: by-table dumps & restore
In-Reply-To: <f6fdfb550802220039j5a47b76cgc83bf93be7cf92f1@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox