| От | Tom Lane |
|---|---|
| Тема | Re: dumping only table definitions |
| Дата | |
| Msg-id | 27190.1530312208@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: dumping only table definitions (Alvaro Herrera <alvherre@2ndquadrant.com>) |
| Список | pgsql-general |
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> On 2018-Jun-29, Kevin Brannen wrote:
>> I'm trying to figure out how to dump only the table definitions, well those and things they need directly, like
sequences& types. What I do NOT want are all the millions (not literally but it feels like it :)) of functions we have.
Triggerswould be all right if I must, as we only have a few of those.
> Try "pg_dump -Fc" followed by pg_restore -l. You can edit the list
> emitted there, then use it with pg_restore -L.
I think something involving "--tables '*.*'" might work, too.
Be careful about shell-command quoting.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера