Re: Dumping functions with pg_dump

From: Jerry Sievers <gsievers19(at)comcast(dot)net>
To: Greg Corradini <gregcorradini(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Dumping functions with pg_dump
Date: 2011-04-05 23:29:11
Message-ID: 87ipusz394.fsf@comcast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Greg Corradini <gregcorradini(at)gmail(dot)com> writes:

> 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?

Just do;

pg_dump --schema-only

Go find the function definition in the output script, snip it out and
load with psql. Remember to load it into the correct schema and
whatever other details.

HTH

--
Jerry Sievers
e: gsievers19(at)comcast(dot)net
p: 305.321.1144

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2011-04-05 23:30:57 Re: Dumping functions with pg_dump
Previous Message Greg Corradini 2011-04-05 23:26:10 Re: Dumping functions with pg_dump