Thank you. I tried pg_extractor and it work almost perfect. I have just one question. We do overloading of a function name (using different parameters) and I think it puts all overlaoded functions in the same file (those with the same file name that is). Is there a way to separate them?
Thanks again for everyones help.
From: Scott Mead [scottm@openscg.com] Sent: Wednesday, March 27, 2013 1:49 PM To: Raghavendra Cc: Keith Ouellette; pgsql-admin@postgresql.org Subject: Re: [ADMIN] Dump only functions
Is there a way to dump only functions to a directory with each function as its own file in SQL format?
AFAIK, there's no direct way to dump each function to a separate file. However, you can use system-defined function or system table to retrieve function structure and then write them to separate file each by using bash or perl scripting.