Re: Dump schema without the functions

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Dump schema without the functions
Дата
Msg-id 20080201131921.GB5172@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Dump schema without the functions  (Stefan Schwarzer <stefan.schwarzer@grid.unep.ch>)
Ответы Re: Dump schema without the functions
Список pgsql-general
Stefan Schwarzer wrote:

> But I don't really get how the final command will look like.
>
> pg_restore -L <file_without_FUNCTIONS> -d <my_database>
>
> But somewhere I have to indicate the original file, no? I mean, where do
> all my data now come from? The original dump contains all data; the
> newly created via
>
>     pg_restore -l geodataportal.public  | grep -v FUNCTION >
> pgdump.geodataportal.public.no-func
>
> has only the TOC. But no data...

Then you feed that file to pg_restore -L, along the original dump file.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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

Предыдущее
От: Stefan Schwarzer
Дата:
Сообщение: Re: Dump schema without the functions
Следующее
От: Stefan Schwarzer
Дата:
Сообщение: Re: Dump schema without the functions