Re: How to fully restore a single table from a custom dump?
В списке pgsql-admin по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: How to fully restore a single table from a custom dump? |
| Дата | |
| Msg-id | 819154.1660051665@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | How to fully restore a single table from a custom dump? (Thomas Kellerer <shammat@gmx.net>) |
| Ответы |
Re: How to fully restore a single table from a custom dump?
|
| Список | pgsql-admin |
Thomas Kellerer <shammat@gmx.net> writes:
> Any ideas, how I can _fully_ restore a single table from a custom dump?
"pg_restore -l -v" will give you a table-of-contents with
dependencies, like this:
8155; 0 40431 MATERIALIZED VIEW DATA public analytics_materialized_view postgres
; depends on: 960 8161
This is object number 8155 and it depends on objects 960 and 8161.
Find the table you want, then look for things with dependencies
on it (some of them may not be things you want to restore).
Edit away all the lines for things you don't want, then feed
the reduced list to "pg_restore -L".
regards, tom lane
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера