| От | Adam Rich |
|---|---|
| Тема | Re: Dump schema without the functions |
| Дата | |
| Msg-id | 019b01c864a1$3b762590$b26270b0$@r@sbcglobal.net обсуждение исходный текст |
| Ответ на | Dump schema without the functions (Stefan Schwarzer <stefan.schwarzer@grid.unep.ch>) |
| Список | pgsql-general |
> how can I dump a schema with all tables, but without the functions? Is > there a way to do it, or do I have to manually drop the functions > later when having used the pg_restore? Stef, You can edit the data between dump and restore, to comment out the function references. Or, you can use the "-L" argument with pg_restore to provide a list of the specific items you want to restore. For example: pg_dump -Fc mydb > db.dump pg_restore -l db.dump | grep -v FUNCTION > db.nofunc.dump pg_restore -d newdb db.nofunc.dump (assuming the word "FUNCTION" doesn't appear elsewhere in your schema object names. If it does, you might try appending the schema, such as grep -v "FUNCTION public") Adam
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера