Patch for pg_dump - Mailing list pgsql-hackers

From Dany DeBontridder
Subject Patch for pg_dump
Date
Msg-id c40e6c010705030839l3aa1ca31xdd855fc6e186ee78@mail.gmail.com
Whole thread Raw
Responses Re: Patch for pg_dump  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
I often need  in command line to get the code of function, so I make a patch for pg_dump, thanks this patch pg_dump is able to dump only one functions or all the functions.

The argument is --object or -B

Example:
./pg_dump -Bfunction:test_it -Bfunction:dblink_open
To dump the functions  test_it, dblink_open
./pgdump --object=function or pg_dump -Bfunction to dump only the functions


It is possible to add other objects, (see getObject functions)


I hope you'll find it interesting.

Regards,

.D.

(patch under BSD licence)

Attachment

pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Feature freeze progress report
Next
From: "Joshua D. Drake"
Date:
Subject: Re: Feature freeze progress report