Re: How to get some table entries from backup instance back to production instance

Поиск
Список
Период
Сортировка
От Martin Steer
Тема Re: How to get some table entries from backup instance back to production instance
Дата
Msg-id 20150210153656.GE18165@arch
обсуждение исходный текст
Ответ на Re: How to get some table entries from backup instance back to production instance  (Marcel Ruff <mr@marcelruff.info>)
Список pgsql-novice
On Tue, Feb 10, 2015 at 02:50:16PM +0100, Marcel Ruff wrote:
>On 10.02.2015 13:36, Martin Steer wrote:
>
>    You want to copy some tables from one db (or dump) to another?
>
>    Perhaps you should look at the man pages for pg_dump and pg_restore.
>    pg_restore allows the loading of a single table, or group of tables,
>    into a specified database.
>
>    M
>
>No, only some instances of "pa" with its children.
>My end user deleted by mistake some "pa"s and now wants to have
>them back.
>
>If I can use pg_dump / pg_restore with some where condition it would
>be the perfect solution, but after reading the man page (as you suggested)
>it is not possible.

You can use your where condition in db1 to create the export-pa tables.
Then dump them and restore them to db2.

M.




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

Предыдущее
От: Daniel Staal
Дата:
Сообщение: Re: Who should own database?
Следующее
От: David G Johnston
Дата:
Сообщение: Re: Who should own database?