Re: Dump schema without the functions

Поиск
Список
Период
Сортировка
От Stefan Schwarzer
Тема Re: Dump schema without the functions
Дата
Msg-id EC48E432-9A8E-4678-85E1-993D74FEE857@grid.unep.ch
обсуждение исходный текст
Ответ на Re: Dump schema without the functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Dump schema without the functions
Список pgsql-general
>> how can I dump a schema with all tables, but without the functions?
>
> There's no built-in single command for that.  You can accomplish it by
> using pg_restore -l to make a list of objects, then edit the list,
> then pg_restore -L to restore only the objects in the edited list.

Hmmm.. I probably should have mentioned that it's not a "normal" dump,
but one including imported shapefiles. So my dump comes from this:

    pg_dump -Fc ...

and - sorry, myself not being an expert - it seems to me that this
file is not editable anymore.

When I try to dump the file in text form, it gets rather big, and when
trying to import it, I get this:

server closed the connection unexpectedly
    This probably means the server terminated abnormally
    before or while processing the request.
connection to server was lost


Stef



Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Dump schema without the functions
Следующее
От: Nicolas KOWALSKI
Дата:
Сообщение: problem with ORDER BY