Re: [GENERAL] How to dump JUST procedures/funnctions?

2010-03-24 Thread Carlo Stonebanks
Hi Tony, Thanks VERY much! That got me on my way. I'm going to try and convert this to a PG stored function, Since you know that the script has limitations, you or othres reading might want to know the ones I've found: 1) Regardless of what you set the schema to, the only ones that are dumped

Re: [GENERAL] How to dump JUST procedures/funnctions?

2010-03-22 Thread Carlo Stonebanks
Afaik no, you can make a schema-dump and extract the function declarations from the dump. Yeah, that's what I was doing. Bloody tedious. Thanks anyway! -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription:

Re: [GENERAL] How to dump JUST procedures/funnctions?

2010-03-22 Thread Tom Lane
Carlo Stonebanks stonec.regis...@sympatico.ca writes: Afaik no, you can make a schema-dump and extract the function declarations from the dump. Yeah, that's what I was doing. Bloody tedious. Thanks anyway! It seems like it could be automated. pg_dump -Fc -s mydb mydb.dump

Re: [GENERAL] How to dump JUST procedures/funnctions?

2010-03-22 Thread Tony Wasson
On Sat, Mar 20, 2010 at 11:09 PM, Carlo Stonebanks stonec.regis...@sympatico.ca wrote: Is pg_get_functiondef an 8.4 appears to be an 8.4 function? I don't see it in the 8.3 documentation and the servers in question are all 8.3. Any alternatives for 8.3? pg_proc has the code body, but not

Re: [GENERAL] How to dump JUST procedures/funnctions?

2010-03-21 Thread Carlo Stonebanks
Is pg_get_functiondef an 8.4 appears to be an 8.4 function? I don't see it in the 8.3 documentation and the servers in question are all 8.3. Any alternatives for 8.3? pg_proc has the code body, but not the function declaration, etc. Andreas Kretschmer akretsch...@spamfence.net wrote in

Re: [GENERAL] How to dump JUST procedures/funnctions?

2010-03-21 Thread A. Kretschmer
In response to Carlo Stonebanks : Is pg_get_functiondef an 8.4 appears to be an 8.4 function? Yes, new since 8.4. I don't see it in the 8.3 documentation and the servers in question are all 8.3. Any alternatives for 8.3? pg_proc has the code body, but not the function declaration,

[GENERAL] How to dump JUST procedures/funnctions?

2010-03-20 Thread Carlo Stonebanks
I'd like to dump to text the full SQL required to create/replace all user-defined functions within a specific schema - but JUST the function declarations. We are doing server migration and there are some network paths in the code I would like to search and replace. Carlo -- Sent via

Re: [GENERAL] How to dump JUST procedures/funnctions?

2010-03-20 Thread Andreas Kretschmer
Carlo Stonebanks stonec.regis...@sympatico.ca wrote: I'd like to dump to text the full SQL required to create/replace all user-defined functions within a specific schema - but JUST the function declarations. We are doing server migration and there are some network paths in the code I