Re: Dumping functions with pg_dump

Поиск
Список
Период
Сортировка
Искать
От
Vibhor Kumar
Тема
Re: Dumping functions with pg_dump
Дата
Msg-id
A4BF7E48-6A2F-4894-BA11-D5D58BDDBA3C@enterprisedb.com
Ответ на
Список
Дерево обсуждения
Dumping functions with pg_dump Greg Corradini <gregcorradini@gmail.com>
Re: Dumping functions with pg_dump Raymond O'Donnell <rod@iol.ie>
Re: Dumping functions with pg_dump Adrian Klaver <adrian.klaver@gmail.com>
Re: Dumping functions with pg_dump Greg Corradini <gregcorradini@gmail.com>
Re: Dumping functions with pg_dump Adrian Klaver <adrian.klaver@gmail.com>
Re: Dumping functions with pg_dump Greg Corradini <gregcorradini@gmail.com>
Re: Dumping functions with pg_dump Jerry Sievers <gsievers19@comcast.net>
Re: Dumping functions with pg_dump Vibhor Kumar <vibhor.kumar@enterprisedb.com>

On Apr 6, 2011, at 4:45 AM, Greg Corradini wrote:

> Hello,
> Is it possible yet in 8.4 to pg_dump specific functions without having to do the whole pg_restore thing?
> 
> If it is possible, what is the syntax to dump a specific function?
> 
> If not possible, then how does one use pg_restore to target a specific function?
> 
> thx

Not from pg_dump. You can use psql to dump the specific functions using pg_get_functiondef(oid)
psql -c "select pg_get_functiondef(oid) from pg_proc where proname='' and pronamespace=(select oid from pg_namespace where nspname='schemaname');" ;


Thanks & Regards,
Vibhor Kumar
EnterpriseDB Corporation
The Enterprise PostgreSQL Company
vibhor.kumar@enterprisedb.com
Blog:http://vibhork.blogspot.com

В списке pgsql-general по дате отправления
От: Eric McKeeth
Дата:
От: Zeev Ben-Sender
Дата:
FAQ