Re: Dump only functions...

Поиск
Список
Период
Сортировка
От Tino Wildenhain
Тема Re: Dump only functions...
Дата
Msg-id 1130311200.23228.75.camel@Andrea.peacock.de
обсуждение исходный текст
Ответ на Dump only functions...  ("Cristian Prieto" <cristian@clickdiario.com>)
Ответы Re: Dump only functions...  (Bricklen Anderson <BAnderson@PresiNET.com>)
Список pgsql-general
Am Dienstag, den 18.10.2005, 15:31 -0600 schrieb Cristian Prieto:
> Any of you knows is there is any way in pg_dump or anything to dump
> just the functions from a database?

pg_dump -Fc -v -f temp.dump yourdatabase
pg_restore -l temp.dump | grep FUNCTION >functionlist
pg_restore -L functionlist temp.dump >yourfunctions.sql

of course you can just use your regular dump and so
skip the first part.

HTH
Tino


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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: a stored procedure ..with integer as the parameter
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: Autogenerated backup of a password protected database